commit 49de60fc5f80ef63facadedb5d50eab8e0194407
parent 11ae71c7edf57fe14d737f9419af523dc054abe9
Author: Kyle Milz <kyle@windows.krwm.net>
Date: Mon, 2 Jan 2017 12:21:10 -0800
t: fix up inst_while
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/t/inst_while.t b/t/inst_while.t
@@ -32,7 +32,7 @@ int main(int argc, char *argv[]) {++_citrun.data[0];
EOF
my $check_good = <<EOF;
->> citrun_inst v0.0 ()
+>> citrun_inst
CITRUN_SHARE = ''
Found source file ''
Modified command line is ''
@@ -59,10 +59,10 @@ $inst->read(\$inst_out, 'while.c');
my $check_out = $inst->stdout;
$check_out =~ s/^.*Milliseconds spent.*\n//gm;
$check_out =~ s/'.*'/''/gm;
-$check_out =~ s/\(.*\)/\(\)/gm;
+$check_out =~ s/^.* citrun_inst.*\n/>> citrun_inst\n/gm;
$check_out =~ s/^[0-9]+: //gm;
eq_or_diff( $inst_out, $inst_good, 'is instrumented file identical', { context => 3 } );
-eq_or_diff $check_good, $check_out, 'is citrun_inst output identical';
+eq_or_diff $check_out, $check_good, 'is citrun_inst output identical', { context => 3 } ;
is( $inst->stderr, '', 'is citrun_inst stderr silent' );
is( $? >> 8, 0, 'is citrun_inst exit code 0' );