summaryrefslogtreecommitdiffstats
path: root/tests/all.tcl
diff options
context:
space:
mode:
authorhobbs <hobbs>1999-12-04 06:16:48 (GMT)
committerhobbs <hobbs>1999-12-04 06:16:48 (GMT)
commit8bd88ae75ebf3df12baf9472747baf999a089c8c (patch)
treede4d563d31e6b705edb459823af308d53d953c2b /tests/all.tcl
parent0cbb9c47d7cd5a71ca1189ab216bf3ded3800278 (diff)
downloadtcl-8bd88ae75ebf3df12baf9472747baf999a089c8c.zip
tcl-8bd88ae75ebf3df12baf9472747baf999a089c8c.tar.gz
tcl-8bd88ae75ebf3df12baf9472747baf999a089c8c.tar.bz2
* tests/env.test: removed knownBug limitation from working test
* tests/all.tcl: ensured that ::tcltest::testsDirectory would be set to an absolute path * tests/expr-old.test: * tests/parseExpr.test: * tests/string.test: * generic/tclGet.c: * generic/tclInt.h: * generic/tclObj.c: * generic/tclParseExpr.c: * generic/tclUtil.c: * generic/tclExecute.c: added TclCheckBadOctal routine to enhance error message checking for when users use invalid octal numbers (like 08), as well as replumbed the Expr*Funcs with a new VerifyExprObjType to simplify type handling.
Diffstat (limited to 'tests/all.tcl')
-rw-r--r--tests/all.tcl12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/all.tcl b/tests/all.tcl
index b4d132d..1b13adb 100644
--- a/tests/all.tcl
+++ b/tests/all.tcl
@@ -7,7 +7,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: all.tcl,v 1.7 1999/06/29 20:14:17 jenn Exp $
+# RCS: @(#) $Id: all.tcl,v 1.8 1999/12/04 06:16:48 hobbs Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -17,6 +17,16 @@ if {[lsearch [namespace children] ::tcltest] == -1} {
set ::tcltest::testSingleFile false
set ::tcltest::testsDirectory [file dir [info script]]
+# We need to ensure that the testsDirectory is absolute
+#
+if {[string equal relative [file pathtype $::tcltest::testsDirectory]]} {
+ set cwd [pwd]
+ cd $::tcltest::testsDirectory
+ set ::tcltest::testsDirectory [pwd]
+ cd $cwd
+ unset cwd
+}
+
puts stdout "Tcl $tcl_patchLevel tests running in interp: [info nameofexecutable]"
puts stdout "Tests running in working dir: $::tcltest::testsDirectory"
if {[llength $::tcltest::skip] > 0} {