aboutsummaryrefslogtreecommitdiff
path: root/tests/runall.tcl
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2021-04-09 08:08:02 +1000
committerSteve Bennett <steveb@workware.net.au>2021-04-09 08:29:24 +1000
commitbcd4434161897da5203cdfaef8b2227e15d82c45 (patch)
treefdadc54b907c5ca5e71aa2168fb0d0894824a114 /tests/runall.tcl
parent4a5392ef726b2ab4f750df5cae471699bc809b05 (diff)
downloadjimtcl-bcd4434161897da5203cdfaef8b2227e15d82c45.zip
jimtcl-bcd4434161897da5203cdfaef8b2227e15d82c45.tar.gz
jimtcl-bcd4434161897da5203cdfaef8b2227e15d82c45.tar.bz2
build: Allow some paths to contain spaces
Quote the build dir or and the path to jimsh/tclsh in the Makefile in case they contain spaces. Also fix a few problems in tests/ that arise when the build and/or source dir contain spaces. Fixes #199 Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'tests/runall.tcl')
-rw-r--r--tests/runall.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runall.tcl b/tests/runall.tcl
index a97ecfd..9ef76b8 100644
--- a/tests/runall.tcl
+++ b/tests/runall.tcl
@@ -42,7 +42,7 @@ if {[info commands interp] eq ""} {
}
# Run the test
- catch -exit {$i eval source $script} msg opts
+ catch -exit [list $i eval [list source $script]] msg opts
if {[info returncode $opts(-code)] eq "error"} {
puts [format "%16s: --- error ($msg)" $script]
incr total(fail)