commit f3d1adecacac1c7b5fc04dfdf074eba63f70ab39
parent c006a54d9072af0fe4bf3efcfb75aa4911f94486
Author: Kyle Milz <kyle@windows.krwm.net>
Date: Mon, 2 Jan 2017 12:03:49 -0800
t: fix up inst_macro
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/t/inst_macro.t b/t/inst_macro.t
@@ -31,7 +31,7 @@ int main(int argc, char *argv[]) {++_citrun.data[2];
EOF
my $check_good = <<EOF;
->> citrun_inst v0.0 ()
+>> citrun_inst
CITRUN_SHARE = ''
Found source file ''
Modified command line is ''
@@ -54,12 +54,12 @@ $inst->read(\$inst_out, 'macro.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' );