]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Darwin regtest: don't visit dSYM directories with tests/vg_regtest
authorPaul Floyd <pjfloyd@wanadoo.fr>
Mon, 29 Apr 2024 19:11:53 +0000 (21:11 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Mon, 29 Apr 2024 19:11:53 +0000 (21:11 +0200)
Due to the extra directory depth of dSYM directories the following line
    my $dashes = "-" x (50 - length $full_dir);
generates a warning on Darwin because the length of $full_dir is more than 50
("Negative repeat count does nothing"). This change makes test_one_dir return
early if the directory contains "dSYM".

tests/vg_regtest.in

index 7152765ed70356c8054325126ef024d054a4d490..579e6afcf74cf817ab257d8a9730049413cbbe46 100755 (executable)
@@ -631,6 +631,7 @@ sub test_one_dir($$)
     if (256 == system("$tests_dir/tests/os_test   $dir"))  { return; }
     if ($dir =~ /(\w+)-(\w+)/ &&
         256 == system("sh $tests_dir/tests/platform_test $1 $2")) { return; }
+    if ($dir =~ "dSYM") { return; }
     
     chdir($dir) or die "Could not change into $dir\n";