citrun

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

commit 496a854557bb592042bd03441916dfb251c53bbe
parent c958edc205d0e3c6006e48196f5bf5e50990b322
Author: Kyle Milz <kyle@windows.krwm.net>
Date:   Sat, 31 Dec 2016 00:13:03 -0800

t: sanitize platform name from tests

Diffstat:
Mt/inst_switch.t | 3++-
Mt/inst_while.t | 3++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/t/inst_switch.t b/t/inst_switch.t @@ -45,7 +45,7 @@ int main(void) EOF my $check_good = <<EOF; ->> citrun_inst v0.0 (OpenBSD-6.0 amd64) +>> citrun_inst v0.0 () CITRUN_SHARE = '' Switching argv[0] '' Found source file '' @@ -71,6 +71,7 @@ my $inst_out = read_file($inst->workdir . '/switch.c'); my $check_out = $inst->stdout; $check_out =~ s/^.*Milliseconds spent.*\n//gm; $check_out =~ s/'.*'/''/gm; +$check_out =~ s/\(.*\)/\(\)/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'; diff --git a/t/inst_while.t b/t/inst_while.t @@ -33,7 +33,7 @@ int main(int argc, char *argv[]) {++_citrun.data[0]; EOF my $check_good = <<EOF; ->> citrun_inst v0.0 (OpenBSD-6.0 amd64) +>> citrun_inst v0.0 () CITRUN_SHARE = '' Switching argv[0] '' Found source file '' @@ -60,6 +60,7 @@ my $inst_out = read_file($inst->workdir . '/while.c'); my $check_out = $inst->stdout; $check_out =~ s/^.*Milliseconds spent.*\n//gm; $check_out =~ s/'.*'/''/gm; +$check_out =~ s/\(.*\)/\(\)/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';