diff --git a/tests/scripts/functions/wildcard b/tests/scripts/functions/wildcard index e47c4b38..d1449af3 100644 --- a/tests/scripts/functions/wildcard +++ b/tests/scripts/functions/wildcard @@ -143,12 +143,15 @@ if ($port_type ne 'W32' && eval { symlink("",""); 1 }) { rmdir($dir); # Test for dangling symlinks + # This doesn't work with the built-in glob... needs to be updated! - symlink($dir, $lnk); + if ($CONFIG_FLAGS{USE_SYSTEM_GLOB} eq 'yes') { + symlink($dir, $lnk); - run_make_test(qq!all: ; \@echo \$(wildcard $lnk)!, '', "$lnk"); + run_make_test(qq!all: ; \@echo \$(wildcard $lnk)!, '', "$lnk"); - unlink($lnk); + unlink($lnk); + } } 1;