summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2001-07-12 13:36:09 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2001-07-12 13:36:09 (GMT)
commit7ede5355ba21849fa3a8cfcaa8d8d32825a7d53b (patch)
treee6b9dd03456ecc513fd9351e31c9aee3b4f8f280
parent70cdccb08c6d52be6add914db5844c25c9b92f0a (diff)
downloadtcl-7ede5355ba21849fa3a8cfcaa8d8d32825a7d53b.zip
tcl-7ede5355ba21849fa3a8cfcaa8d8d32825a7d53b.tar.gz
tcl-7ede5355ba21849fa3a8cfcaa8d8d32825a7d53b.tar.bz2
Got test unixInit-2.8 to stop wiping out parts of my debug installation by
adding an extra constraint.
-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