From 105e8e3603c5e5528b15ef92e5bd059ccd4e5bc7 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 9 Apr 2009 00:28:03 -0400 Subject: [PATCH] Fixed command lines for unit tests. --- unit_tests/run_tests.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/unit_tests/run_tests.pl b/unit_tests/run_tests.pl index 926cdcd1..57b5a9cc 100755 --- a/unit_tests/run_tests.pl +++ b/unit_tests/run_tests.pl @@ -9,6 +9,9 @@ undef $Bin; #print("testdir is $testdir\n"); + +my $GPrintCmds = 0; + my @modules = qw( preprocessor assembler compiler parser ); @@ -59,7 +62,9 @@ sub compare_files { } else { return (0, "Don't know how to do this module type"); } - $cmd .= '2>/dev/null 1>/dev/null'; + $cmd .= ' 2>/dev/null 1>/dev/null'; + + print("$cmd\n") if ($GPrintCmds); if (system($cmd) != 0) { unlink($output) if (-f $output);