Raymond Toy pushed to branch master at cmucl / cmucl
Commits:
-
1c99e654
by Raymond Toy at 2023-02-24T20:47:11+00:00
-
ba0d43d1
by Raymond Toy at 2023-02-24T20:47:11+00:00
1 changed file:
Changes:
| ... | ... | @@ -18,8 +18,10 @@ |
| 18 | 18 | (declare (ignore arg))
|
| 19 | 19 | form)
|
| 20 | 20 | |
| 21 | -(defparameter *test-path*
|
|
| 22 | - (merge-pathnames (make-pathname :name :unspecific :type :unspecific
|
|
| 21 | +(defparameter *tmp-dir*
|
|
| 22 | + (merge-pathnames (make-pathname :directory '(:relative "tmp")
|
|
| 23 | + :name :unspecific
|
|
| 24 | + :type :unspecific
|
|
| 23 | 25 | :version :unspecific)
|
| 24 | 26 | *load-truename*)
|
| 25 | 27 | "Directory for temporary test files.")
|
| ... | ... | @@ -777,10 +779,11 @@ |
| 777 | 779 | |
| 778 | 780 | (define-test issue.140.two-way-stream
|
| 779 | 781 | (:tag :issues)
|
| 782 | + (ensure-directories-exist *tmp-dir*)
|
|
| 780 | 783 | (with-open-file (in (merge-pathnames "issues.lisp" cmucl-test-runner::*load-path*)
|
| 781 | 784 | :direction :input
|
| 782 | 785 | :external-format :utf-8)
|
| 783 | - (with-open-file (out "/tmp/output.tst"
|
|
| 786 | + (with-open-file (out (merge-pathnames "output.tst" *tmp-dir*)
|
|
| 784 | 787 | :direction :output
|
| 785 | 788 | :external-format :utf-8
|
| 786 | 789 | :if-exists :supersede)
|
| ... | ... | @@ -803,15 +806,15 @@ |
| 803 | 806 | ;; Create 3 output streams. The exact external formats aren't
|
| 804 | 807 | ;; really important here as long as they're different for each file
|
| 805 | 808 | ;; so we can tell if we got the right answer.
|
| 806 | - (with-open-file (s1 "/tmp/broad-1"
|
|
| 809 | + (with-open-file (s1 (merge-pathnames "broad-1" *tmp-dir*)
|
|
| 807 | 810 | :direction :output
|
| 808 | 811 | :if-exists :supersede
|
| 809 | 812 | :external-format :latin1)
|
| 810 | - (with-open-file (s2 "/tmp/broad-2"
|
|
| 813 | + (with-open-file (s2 (merge-pathnames "broad-2" *tmp-dir*)
|
|
| 811 | 814 | :direction :output
|
| 812 | 815 | :if-exists :supersede
|
| 813 | 816 | :external-format :utf-8)
|
| 814 | - (with-open-file (s3 "/tmp/broad-3"
|
|
| 817 | + (with-open-file (s3 (merge-pathnames "broad-3" *tmp-dir*)
|
|
| 815 | 818 | :direction :output
|
| 816 | 819 | :if-exists :supersede
|
| 817 | 820 | :external-format :utf-16)
|