From cba2022d53f1c06fb52a2ea1d9f4cd9585c4ac2e Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Mon, 29 Apr 2024 21:11:53 +0200 Subject: [PATCH] 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". --- tests/vg_regtest.in | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/vg_regtest.in b/tests/vg_regtest.in index 7152765ed7..579e6afcf7 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"; -- 2.47.2