summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-05-22 00:52:13 (GMT)
committerhobbs <hobbs>2001-05-22 00:52:13 (GMT)
commita82f6fdd329bf1e1bca3f86918c6e6aedb17ec4f (patch)
treef335c4126d37ac21e8bd60f7eb89aae912969874 /tests
parent399f682a9605590ca8339ed35d64a8cb3c7d5aa6 (diff)
downloadtcl-a82f6fdd329bf1e1bca3f86918c6e6aedb17ec4f.zip
tcl-a82f6fdd329bf1e1bca3f86918c6e6aedb17ec4f.tar.gz
tcl-a82f6fdd329bf1e1bca3f86918c6e6aedb17ec4f.tar.bz2
* tests/tcltest.test (tcltest-19.1): fixed failing test that was
getting affected by Windows env handling of empty valued elements.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tcltest.test23
1 files changed, 14 insertions, 9 deletions
diff --git a/tests/tcltest.test b/tests/tcltest.test
index e8b78d8..a65dcec 100755
--- a/tests/tcltest.test
+++ b/tests/tcltest.test
@@ -6,7 +6,7 @@
# Copyright (c) 2000 by Ajuba Solutions
# All rights reserved.
#
-# RCS: @(#) $Id: tcltest.test,v 1.13 2001/05/03 23:35:00 hobbs Exp $
+# RCS: @(#) $Id: tcltest.test,v 1.14 2001/05/22 00:52:13 hobbs Exp $
set tcltestVersion [package require tcltest]
namespace import -force ::tcltest::*
@@ -259,13 +259,16 @@ test tcltest-5.4 {tcltest::constraintsSpecified} {
}
}
-test tcltest-5.5 {tcltest::constraintList} {
- -constraints {!$tcltest::singleTestInterp}
- -body {
- lsort [tcltest::constraintList]
- }
- -result {unixOrPc socket nonBlockFiles asyncPipeClose nt knownBug macOnly pc unixExecs nonPortable pcCrash unix notRoot macOrPc eformat macOrUnix 95 tempNotMac 98 mac macCrash tempNotPc stdio tempNotUnix root singleTestInterp unixCrash pcOnly interactive unixOnly hasIsoLocale userInteraction emptyTest}
-}
+test tcltest-5.5 {tcltest::constraintList} \
+ -constraints {!$::tcltest::testConstraints(singleTestInterp)} \
+ -body { lsort [tcltest::constraintList] } \
+ -result [lsort {
+ 95 98 asyncPipeClose eformat emptyTest hasIsoLocale interactive knownBug
+ mac macCrash macOnly macOrPc macOrUnix macOrWin nonBlockFiles nonPortable
+ notRoot nt pc pcCrash pcOnly root singleTestInterp socket stdio tempNotMac
+ tempNotPc tempNotUnix tempNotWin unix unixCrash unixExecs unixOnly unixOrPc
+ unixOrWin userInteraction win winCrash winOnly
+}]
test tcltest-5.6 {tcltest::limitConstraints} {
-setup {
@@ -985,7 +988,9 @@ test tcltest-19.1 {TCLTEST_OPTIONS default} {
} else {
set oldoptions none
}
- set ::env(TCLTEST_OPTIONS) {}
+ # set this to { } instead of just {} to get around quirk in
+ # Windows env handling that removes empty elements from env array.
+ set ::env(TCLTEST_OPTIONS) { }
set olddebug [tcltest::debug]
tcltest::debug 2
}