131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
|
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
|
-
+
-
+
|
set startDir [pwd]
} -body {
cd $rootDir
pwd
} -cleanup {
cd $startDir
unset startDir
} -result $rootDir
} -constraints tcl87 -result $rootDir
tcltest::test xvfs-cwd-2 "Xvfs Can Be cwd" -setup {
set startDir [pwd]
} -body {
cd $rootDir
cd lib
lindex [glob *] 0
} -cleanup {
cd $startDir
unset startDir
} -result "hello"
} -constraints tcl87 -result "hello"
# Currently broken
tcltest::test xvfs-package "Xvfs Can Be Package Directory" -setup {
set startAutoPath $auto_path
lappend auto_path ${rootDir}/lib
} -body {
package require hello
|