From: Paul Floyd Date: Mon, 29 Apr 2024 19:11:53 +0000 (+0200) Subject: Darwin regtest: don't visit dSYM directories with tests/vg_regtest X-Git-Tag: VALGRIND_3_24_0~165 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cba2022d53f1c06fb52a2ea1d9f4cd9585c4ac2e;p=thirdparty%2Fvalgrind.git Darwin regtest: don't visit dSYM directories with tests/vg_regtest 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". --- diff --git a/tests/vg_regtest.in b/tests/vg_regtest.in index 7152765ed..579e6afcf 100755 --- a/tests/vg_regtest.in +++ b/tests/vg_regtest.in @@ -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";