From 627c45e8d4d4154a8e9f3dc8836980f08f00ea92 Mon Sep 17 00:00:00 2001 From: shhyou Date: Thu, 17 Dec 2020 22:48:32 -0600 Subject: [PATCH] Fix temp-dir path in submodule tests for Windows. 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. --- pkgs/racket-test-core/tests/racket/submodule.rktl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/racket-test-core/tests/racket/submodule.rktl b/pkgs/racket-test-core/tests/racket/submodule.rktl index f3bb4f8a84..2bfdbced5e 100644 --- a/pkgs/racket-test-core/tests/racket/submodule.rktl +++ b/pkgs/racket-test-core/tests/racket/submodule.rktl @@ -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: