diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-05-12 14:31:17 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-05-12 14:31:17 (GMT) |
commit | 5d20272000e4f0b9ad2d2e16c4835debcac832dd (patch) | |
tree | 8e9cdff8fe52ffb423b938a88a0afc9043dd4ae2 /tests/unixInit.test | |
parent | 2130fd858277aa77aa78b99690c412e99b04cd66 (diff) | |
download | tcl-5d20272000e4f0b9ad2d2e16c4835debcac832dd.zip tcl-5d20272000e4f0b9ad2d2e16c4835debcac832dd.tar.gz tcl-5d20272000e4f0b9ad2d2e16c4835debcac832dd.tar.bz2 |
Don't test Tcl_GetDefaultEncodingDir() any more (which is obsolete), test Tcl_GetEncodingSearchPath() in stead.
Diffstat (limited to 'tests/unixInit.test')
-rw-r--r-- | tests/unixInit.test | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/unixInit.test b/tests/unixInit.test index 05338ed..0469ee8 100644 --- a/tests/unixInit.test +++ b/tests/unixInit.test @@ -15,6 +15,9 @@ namespace import ::tcltest::* unset -nocomplain path catch {set oldlang $env(LANG)} set env(LANG) C + +# Some tests require the testgetencpath command +testConstraint testgetencpath [llength [info commands testgetencpath]] test unixInit-1.1 {TclpInitPlatform: ignore SIGPIPE} {unix stdio} { set x {} @@ -87,13 +90,15 @@ test unixInit-1.2 {initialisation: standard channel type deduction} {unix stdio} skip [concat [skip] unixInit-2.*] -test unixInit-2.0 {TclpInitLibraryPath: setting tclDefaultEncodingDir} { - set origDir [testgetdefenc] - testsetdefenc slappy - set path [testgetdefenc] - testsetdefenc $origDir +test unixInit-2.0 {TclpInitLibraryPath: setting tclDefaultEncodingDir} -constraints { + testgetencpath +} -body { + set origPath [testgetencpath] + testsetencpath slappy + set path [testgetencpath] + testsetencpath $origPath set path -} {slappy} +} -result {slappy} test unixInit-2.1 {TclpInitLibraryPath: value of installLib, developLib} -setup { unset -nocomplain oldlibrary if {[info exists env(TCL_LIBRARY)]} { |