X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fsubr.sh;h=84ee1a4b8955d637c09520750b4f43aff25848c5;hb=40bff32181a4d9b591ae2bac69bbee3bd77a82bc;hp=333ffb66a6b2a3c69152547ae331c0ce67626e4d;hpb=26d0559df82a00acf85b8ec89541ee8e09bb3e55;p=sbcl.git diff --git a/tests/subr.sh b/tests/subr.sh index 333ffb6..84ee1a4 100644 --- a/tests/subr.sh +++ b/tests/subr.sh @@ -66,6 +66,11 @@ run_sbcl () ( fi ) +run_sbcl_with_args () ( + set -u + "$SBCL_RUNTIME" --core "$SBCL_CORE" "$@" +) + run_sbcl_with_core () ( set -u core="$1" @@ -119,6 +124,10 @@ check_status_maybe_lose () { # them consistently do so in subdirectories. Note that such tests # should not change their exit action, or do so only very carefully. use_test_subdirectory () { + if test -d "$TEST_DIRECTORY" + then + cleanup_test_subdirectory + fi mkdir "$TEST_DIRECTORY" cd "$TEST_DIRECTORY" trap "cleanup_test_subdirectory" EXIT