summaryrefslogtreecommitdiffstats
path: root/tests/winFile.test
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley@noemail.net>2002-06-13 09:39:57 (GMT)
committervincentdarley <vincentdarley@noemail.net>2002-06-13 09:39:57 (GMT)
commitcf2180cf11dfed663d9f22281a82b31e03ac6490 (patch)
treebf267b96362f0e9d923d36bea51aa6f4a245f873 /tests/winFile.test
parent98ea6e8d52a8b954084896b2bb324a60ea9f3053 (diff)
downloadtcl-cf2180cf11dfed663d9f22281a82b31e03ac6490.zip
tcl-cf2180cf11dfed663d9f22281a82b31e03ac6490.tar.gz
tcl-cf2180cf11dfed663d9f22281a82b31e03ac6490.tar.bz2
vfs, winfs testsuite
FossilOrigin-Name: 494e81b676070f623d387cd1d1104b404dba7803
Diffstat (limited to 'tests/winFile.test')
-rw-r--r--tests/winFile.test14
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/winFile.test b/tests/winFile.test
index 0cf76e2..c0b26e3 100644
--- a/tests/winFile.test
+++ b/tests/winFile.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: winFile.test,v 1.7 2002/05/02 20:15:20 vincentdarley Exp $
+# RCS: @(#) $Id: winFile.test,v 1.8 2002/06/13 09:40:00 vincentdarley Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -65,10 +65,14 @@ test winFile-2.2 {TclpMatchFiles: case sensitivity} {pcOnly} {
test winFile-3.1 {file system} {pcOnly} {
set res "volume types ok"
foreach vol [file volumes] {
- if {![string equal [lindex [file system $vol] 1] [testvolumetype $vol]]} {
- set res "For $vol, we found [file system $vol]\
- and [testvolumetype $vol] are different"
- break
+ # Have to catch in case there is a removable drive (CDROM, floppy)
+ # with nothing in it.
+ catch {
+ if {![string equal [lindex [file system $vol] 1] [testvolumetype $vol]]} {
+ set res "For $vol, we found [file system $vol]\
+ and [testvolumetype $vol] are different"
+ break
+ }
}
}
set res