Raymond Toy pushed to branch master at cmucl / cmucl
Commits:
-
3c56ed8c
by Raymond Toy at 2018-03-03T14:28:53-08:00
1 changed file:
Changes:
... | ... | @@ -34,12 +34,19 @@ done |
34 | 34 |
# Shift out the options
|
35 | 35 |
shift $[$OPTIND - 1]
|
36 | 36 |
|
37 |
-# Create the test directory needed issue.45 test.
|
|
38 |
- |
|
37 |
+# Create the test directory needed by the issue.45 test.
|
|
39 | 38 |
rm -rf test-tmp
|
40 | 39 |
mkdir test-tmp
|
41 | 40 |
ln -s /bin/ls test-tmp/ls-link
|
42 | 41 |
|
42 |
+# Cleanup temp files and directories that we created during testing.
|
|
43 |
+function cleanup {
|
|
44 |
+ rm -f /tmp/trac.36.bom.txt /tmp/trac.43.txt
|
|
45 |
+ rm -rf /tmp/foo
|
|
46 |
+}
|
|
47 |
+ |
|
48 |
+trap cleanup EXIT
|
|
49 |
+ |
|
43 | 50 |
if [ $# -eq 0 ]; then
|
44 | 51 |
# No args so run all the tests
|
45 | 52 |
$LISP -noinit -load tests/run-tests.lisp -eval '(cmucl-test-runner:run-all-tests)'
|