package require vfs
test vfs-1.1 {mount unmount} {
+ catch {unset res}
vfs::filesystem mount foo bar
set res [list [catch {vfs::filesystem unmount foo bar} err]]
lappend res $err
set res
} {1 {wrong # args: should be "vfs::filesystem unmount path"}}
+
+# Test 2.x sub-interps
+
+vfs::filesystem mount foo bar
+
+test vfs-2.1 {mount unmount} {
+ catch {interp delete a}
+ catch {unset res}
+ interp create a
+ a eval {package require vfs}
+ a eval {vfs::filesystem mount foo2 bar2}
+ lappend res [vfs::filesystem info]
+ a eval {vfs::filesystem unmount foo2}
+ lappend res [vfs::filesystem info]
+ set res
+} {{C:/Tcl-source/tclvfs/tests/foo2 C:/Tcl-source/tclvfs/tests/foo}\
+ C:/Tcl-source/tclvfs/tests/foo}
+
+vfs::filesystem unmount foo
+
# cleanup
::tcltest::cleanupTests
return