citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 7f7cb5c01f089f72106acc54690e3b192e077c96
parent 76c7d38139569615270925380ff8a805cfd7aecc
Author: Kyle Milz <kyle@0x30.net>
Date:   Sun,  7 Aug 2016 18:14:29 -0600

Test: start unbreaking after last change

Diffstat:
MTest/Viewer.pm | 4++--
Mt/inst_log.t | 13+++++++++++++
Mt/inst_two_src_one_cmd.t | 26++++++++++++++++++++++++++
3 files changed, 41 insertions(+), 2 deletions(-)

diff --git a/Test/Viewer.pm b/Test/Viewer.pm @@ -39,10 +39,10 @@ sub accept { my @tus; for (1..$self->{ntus}) { my $file_name = read_all($sock, read_unpack($sock, 2, "S")); - my ($num_lines, $inst_sites) = read_unpack($sock, 8, "L2"); + my ($num_lines) = read_unpack($sock, 4, "L"); # Keep this in order so it's easy to fetch dynamic data. - push @tus, [ $file_name, $num_lines, $inst_sites ]; + push @tus, [ $file_name, $num_lines ]; } $self->{tus} = \@tus; } diff --git a/t/inst_log.t b/t/inst_log.t @@ -55,6 +55,19 @@ Command line is ''. Found source file ''. Object arg = 1, compile arg = 1 Added clangtool argument ''. +Instrumentation of '' finished: + 22 Lines of source code + 30 Lines of instrumentation header + 1 Functions called '' + 5 Function declarations + 2 If statements + 0 For statements + 0 While statements + 0 Switch statements + 5 Return statement values + 4 Call expressions + 198 Total statements in source +Modified source written successfully. Instrumentation successful. Running native compiler on modified source code. Forked ''. diff --git a/t/inst_two_src_one_cmd.t b/t/inst_two_src_one_cmd.t @@ -45,6 +45,32 @@ Found source file ''. Object arg = 1, compile arg = 0 Link detected, adding '' to command line. Added clangtool argument ''. +Instrumentation of '' finished: + 6 Lines of source code + 30 Lines of instrumentation header + 1 Functions called '' + 1 Function declarations + 0 If statements + 0 For statements + 0 While statements + 0 Switch statements + 1 Return statement values + 0 Call expressions + 3 Total statements in source +Modified source written successfully. +Instrumentation of '' finished: + 6 Lines of source code + 30 Lines of instrumentation header + 0 Functions called '' + 1 Function declarations + 0 If statements + 0 For statements + 0 While statements + 0 Switch statements + 1 Return statement values + 0 Call expressions + 3 Total statements in source +Modified source written successfully. Instrumentation successful. Running native compiler on modified source code. Forked ''.