Avoid writing to the current directory in this test.
This commit is contained in:
parent
73a010841f
commit
12927d0e8b
|
@ -4,6 +4,7 @@
|
|||
racket/system
|
||||
compiler/find-exe)
|
||||
|
||||
(parameterize ((current-directory (find-system-path 'temp-dir)))
|
||||
(define tmpdir (make-temporary-file "tmp~a" 'directory (current-directory)))
|
||||
(define tmppath (build-path tmpdir "tmp.rkt"))
|
||||
(with-output-to-file (build-path tmpdir "tmp.rkt") #:exists 'replace
|
||||
|
@ -16,5 +17,4 @@
|
|||
(delete-directory/files tmpdir)
|
||||
|
||||
(unless ok?
|
||||
(error "`raco make` test failed"))
|
||||
|
||||
(error "`raco make` test failed")))
|
||||
|
|
Loading…
Reference in New Issue
Block a user