mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-02-04 22:02:19 +00:00
* tests/scripts/functions/wildcard: Skip slash tests for local glob.
This commit is contained in:
parent
393d2a2d4a
commit
2e6468c811
1 changed files with 51 additions and 45 deletions
|
@ -75,8 +75,11 @@ run_make_test(q!exists: ; @echo file=$(wildcard xxx.yyy)!, '', "file=\n");
|
||||||
|
|
||||||
# TEST #7: verify that when the input pattern has a trailing slash wildcard
|
# TEST #7: verify that when the input pattern has a trailing slash wildcard
|
||||||
# returns only directories.
|
# returns only directories.
|
||||||
|
#
|
||||||
|
# Currently this doesn't work with our embedded GLOB so disable it.
|
||||||
# -------
|
# -------
|
||||||
|
|
||||||
|
if (get_config('USE_SYSTEM_GLOB') eq 'yes') {
|
||||||
touch("hellof");
|
touch("hellof");
|
||||||
mkdir("hellod", 0770);
|
mkdir("hellod", 0770);
|
||||||
mkdir("hellod/worldd", 0770);
|
mkdir("hellod/worldd", 0770);
|
||||||
|
@ -117,10 +120,13 @@ print3:
|
||||||
."hellod/worldd/kenf1 hellod/worldd/kenf2\n"
|
."hellod/worldd/kenf1 hellod/worldd/kenf2\n"
|
||||||
."hellod/worldd/kend1/ hellod/worldd/kend2/\n");
|
."hellod/worldd/kend1/ hellod/worldd/kend2/\n");
|
||||||
|
|
||||||
unlink('hellof', 'hellod/worldf', 'hellod/worldd/kenf1', 'hellod/worldd/kenf2');
|
unlink('hellof', 'hellod/worldf', 'hellod/worldd/kenf1',
|
||||||
foreach $d ('hellod/worldd/kend1', 'hellod/worldd/kend2', 'hellod/worldd', 'hellod') {
|
'hellod/worldd/kenf2');
|
||||||
|
foreach $d ('hellod/worldd/kend1', 'hellod/worldd/kend2', 'hellod/worldd',
|
||||||
|
'hellod') {
|
||||||
rmdir($d);
|
rmdir($d);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($port_type ne 'W32') {
|
if ($port_type ne 'W32') {
|
||||||
# Check wildcard on the root directory
|
# Check wildcard on the root directory
|
||||||
|
|
Loading…
Reference in a new issue