summaryrefslogtreecommitdiffstats
path: root/tests/unixInit.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2001-08-24 14:59:20 (GMT)
committerdgp <dgp@users.sourceforge.net>2001-08-24 14:59:20 (GMT)
commitae875835e44e8d1497214500d33f2854f8f9d242 (patch)
treea9cba91938f7f3cd0b588fa34ded44fe33bf1b8d /tests/unixInit.test
parent5a5fd5e2cd3ad0ff7060758b0ca4dfeced41755b (diff)
downloadtcl-ae875835e44e8d1497214500d33f2854f8f9d242.zip
tcl-ae875835e44e8d1497214500d33f2854f8f9d242.tar.gz
tcl-ae875835e44e8d1497214500d33f2854f8f9d242.tar.bz2
* Corrected expected result
to match Tcl's quirky construction of its init library path.
Diffstat (limited to 'tests/unixInit.test')
-rw-r--r--tests/unixInit.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/unixInit.test b/tests/unixInit.test
index 6a7b2c6..0552e50 100644
--- a/tests/unixInit.test
+++ b/tests/unixInit.test
@@ -10,7 +10,7 @@
# 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.21 2001/07/12 16:26:57 dgp Exp $
+# RCS: @(#) $Id: unixInit.test,v 1.22 2001/08/24 14:59:20 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -269,7 +269,9 @@ test unixInit-2.9 {TclpInitLibraryPath: paths relative to executable} {
file delete -force /tmp/library
set x
} [list /tmp/lib/tcl[info tclversion] /lib/tcl[info tclversion] \
- /tmp/library /library /tcl[info patchlevel]/library]
+ /tmp/library /library [format /tcl%s/library \
+ [expr {[regexp {[ab]} [info patchlevel]] ?
+ [info patchleve] : [info tclversion]}]]]
test unixInit-3.1 {TclpSetInitialEncodings} {unixOnly installedTcl} {
set env(LANG) C