commit 3abac05f02aef715c084b80c0244e23ef05adfd3
parent 813991b31b8272e5895ba6f66daa4523030c6ac5
Author: Kyle Milz <kyle@windows.krwm.net>
Date: Mon, 2 Jan 2017 08:43:07 -0800
t: fix up inst_funcdef
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/t/inst_funcdef.t b/t/inst_funcdef.t
@@ -34,7 +34,7 @@ other(int a,
EOF
my $check_good = <<EOF;
->> citrun_inst v0.0 ()
+>> citrun_inst
CITRUN_SHARE = ''
Found source file ''
Modified command line is ''
@@ -56,12 +56,12 @@ $inst->read(\$inst_out, 'funcdef.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' );