]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Arch-abstraction:
authorNicholas Nethercote <n.nethercote@gmail.com>
Tue, 19 Oct 2004 16:56:41 +0000 (16:56 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Tue, 19 Oct 2004 16:56:41 +0000 (16:56 +0000)
- 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

tests/vg_regtest.in

index 10ed6e4fd704205873bc3cb0b6066cbf67e6c696..676bbf85924e0ed099c498b5777c67da9c488812 100755 (executable)
@@ -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:");