From: Nicholas Nethercote Date: Tue, 19 Oct 2004 16:56:41 +0000 (+0000) Subject: Arch-abstraction: X-Git-Tag: svn/VALGRIND_3_0_0~1492 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f1f1e2ffe3e67e9bc5b41b485a3e09109b2ae51b;p=thirdparty%2Fvalgrind.git Arch-abstraction: - Change regtest script to print a message if a test is skipped due to the cpu being of the wrong type. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2803 --- diff --git a/tests/vg_regtest.in b/tests/vg_regtest.in index 10ed6e4fd7..676bbf8592 100755 --- a/tests/vg_regtest.in +++ b/tests/vg_regtest.in @@ -91,8 +91,6 @@ my $num_tests_done = 0; my %num_failures = (stderr => 0, stdout => 0); # Default valgrind to use is this build tree's (uninstalled) one -my $prefix="@prefix@"; -my $exec_prefix="@exec_prefix@"; my $valgrind = "./coregrind/valgrind"; chomp(my $tests_dir = `pwd`); @@ -266,7 +264,10 @@ sub do_one_test($$) read_vgtest_file($vgtest); if (defined $cpu_test) { - return unless system("../../tests/cputest $cpu_test") == 0; + if (system("$tests_dir/tests/cputest $cpu_test") != 0) { + printf("%-16s (cpu_test failed, skipping)\n", "$name:"); + return; + } } printf("%-16s valgrind $vgopts $prog $args\n", "$name:");