summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--tests/unixInit.test6
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 140e139..81470d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2001-07-12 Donal K. Fellows <fellowsd@cs.man.ac.uk>
+ * tests/unixInit.test (unixInit-2.8): Added extra constraint,
+ notInstalledInTmp, to stop this test from damaging installations
+ in /tmp; not much fun to have to reinstall the Tcl library every
+ time you run the test suite!
+
* tests/subst.test (subst-10.*): Updated tests to check new
behaviour for 'break' in command substitutions.
(subst-1.2,subst-7.1): Error messages changed.
diff --git a/tests/unixInit.test b/tests/unixInit.test
index d6c9665..ec54099 100644
--- a/tests/unixInit.test
+++ b/tests/unixInit.test
@@ -10,13 +10,15 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: unixInit.test,v 1.19 2001/07/03 16:53:33 dgp Exp $
+# RCS: @(#) $Id: unixInit.test,v 1.20 2001/07/12 13:36:09 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
namespace import -force ::tcltest::*
}
+set ::tcltest::testConstraints(notInstalledInTmp) \
+ [string match /tmp/lib/* [info library]]
if {[info exists env(TCL_LIBRARY)]} {
set oldlibrary $env(TCL_LIBRARY)
unset env(TCL_LIBRARY)
@@ -201,7 +203,7 @@ test unixInit-2.7 {TclpInitLibraryPath: compiled-in library path} \
# would need test command to get defaultLibDir and compare it to
# [lindex $auto_path end]
} {}
-test unixInit-2.8 {TclpInitLibraryPath: all absolute pathtype} {unixOnly} {
+test unixInit-2.8 {TclpInitLibraryPath: all absolute pathtype} {unixOnly notInstalledInTmp} {
# Checking for Bug 219416
# When a program that embeds the Tcl library, like tcltest, is
# installed near the "root" of the file system, there was a problem