Skip to content

Commit

Permalink
Fix temp-dir path in submodule tests for Windows.
Browse files Browse the repository at this point in the history
The function make-temporary-file supplies a string
argument consisting of digits to the format function.
Therefore, if the template uses the ~s formatting
escape, make-temporary-file will attempt to create
a temporary directory with double quotes in the path.
Such paths are now allowed on Windows.
  • Loading branch information
shhyou committed Dec 18, 2020
1 parent b7c0130 commit 627c45e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/racket-test-core/tests/racket/submodule.rktl
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Directory for testing

(define temp-dir (make-temporary-file "submodule-tests-~s" 'directory))
(define temp-dir (make-temporary-file "submodule-tests-~a" 'directory))

;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Check submodule resolution of relative paths:
Expand Down

0 comments on commit 627c45e

Please sign in to comment.