fix test to work with relative executable path
This commit is contained in:
parent
13d7a37eb6
commit
02318ebcb3
|
@ -21,14 +21,14 @@
|
|||
(err/rt-test (path->relative-string/setup #"bleh"))
|
||||
(err/rt-test (path->relative-string/setup 'bleh)))
|
||||
|
||||
(require unstable/file)
|
||||
(require compiler/find-exe)
|
||||
(let ()
|
||||
(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
|
||||
(lambda ()
|
||||
(printf "#lang racket\n")))
|
||||
(define exec-path (find-system-path 'exec-file))
|
||||
(define exec-path (find-exe))
|
||||
(define relpath (find-relative-path (current-directory) tmppath))
|
||||
|
||||
(test #t system* exec-path "-l" "raco" "make" "-j" "2" (path->string relpath))
|
||||
|
|
Loading…
Reference in New Issue
Block a user