commit 813991b31b8272e5895ba6f66daa4523030c6ac5
parent 114f2616d1277836824921413a9fb6c1343e7950
Author: Kyle Milz <kyle@windows.krwm.net>
Date: Mon, 2 Jan 2017 08:39:29 -0800
t: fix up inst_dowhile
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/t/inst_dowhile.t b/t/inst_dowhile.t
@@ -30,7 +30,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 ''
@@ -55,12 +55,12 @@ $inst->read(\$inst_out, 'dowhile.c');
# Sanitize paths from stdout.
my $check_out = $inst->stdout;
+$check_out =~ s/^.* citrun_inst.*\n/>> citrun_inst\n/gm;
$check_out =~ s/^.*Milliseconds spent.*\n//gm;
$check_out =~ s/'.*'/''/gm;
-$check_out =~ s/\(.*\)/\(\)/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' );