X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=inline;f=tests%2Ffilesys.test.sh;h=f20c4e4595b25ae9822544099dcafd840bf4cbb3;hb=16028d14234d2acd0e6a3145a7364f2a52eabf63;hp=09f96c0e8bc7bc1fb013076afd09ab770940f331;hpb=a42922aef908a1b45ae5420d51b2ca7ee1bafb9e;p=sbcl.git diff --git a/tests/filesys.test.sh b/tests/filesys.test.sh index 09f96c0..f20c4e4 100644 --- a/tests/filesys.test.sh +++ b/tests/filesys.test.sh @@ -198,5 +198,18 @@ Lisp filename syntax idiosyncrasies)." EOF check_status_maybe_lose "DIRECTORY/TRUENAME part 3" $? +# Test whether ENSURE-DIRECTORIES-EXIST can create a directory whose +# name contains a wildcard character (it used to get itself confused +# internally). +run_sbcl --eval '(ensure-directories-exist "foo\\*bar/baz.txt")' +test -d foo*bar +check_status_maybe_lose "ENSURE-DIRECTORIES-EXIST part 1" $? \ + 0 "(directory exists)" + +run_sbcl --eval '(ensure-directories-exist "foo\\?bar/baz.txt")' +test -d foo?bar +check_status_maybe_lose "ENSURE-DIRECTORIES-EXIST part 2" $? \ + 0 "(directory exists)" + # success convention for script exit $EXIT_TEST_WIN