summaryrefslogtreecommitdiffstats
path: root/tests/fCmd.test
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley@noemail.net>2001-09-04 18:06:33 (GMT)
committervincentdarley <vincentdarley@noemail.net>2001-09-04 18:06:33 (GMT)
commit3753395ac33ddd9bb7a098692cfcb2a4a3bc595c (patch)
treefe242e0e386c2472085adf41540fa813c334a000 /tests/fCmd.test
parent1fad82cb66ef1b8a46bd45a3661a1f0e338fce96 (diff)
downloadtcl-3753395ac33ddd9bb7a098692cfcb2a4a3bc595c.zip
tcl-3753395ac33ddd9bb7a098692cfcb2a4a3bc595c.tar.gz
tcl-3753395ac33ddd9bb7a098692cfcb2a4a3bc595c.tar.bz2
minor fs, vfs fixes
FossilOrigin-Name: e50cc64ecbf8361559ffca6a1988f616b2674078
Diffstat (limited to 'tests/fCmd.test')
-rw-r--r--tests/fCmd.test21
1 files changed, 19 insertions, 2 deletions
diff --git a/tests/fCmd.test b/tests/fCmd.test
index c9e4ca0..9b3d997 100644
--- a/tests/fCmd.test
+++ b/tests/fCmd.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: fCmd.test,v 1.10 2001/07/31 19:12:07 vincentdarley Exp $
+# RCS: @(#) $Id: fCmd.test,v 1.11 2001/09/04 18:06:34 vincentdarley Exp $
#
if {[lsearch [namespace children] ::tcltest] == -1} {
@@ -381,9 +381,26 @@ test fCmd-5.9 {TclFileDeleteCmd: is directory} {notRoot} {
} {0}
test fCmd-5.10 {TclFileDeleteCmd: TclpRemoveDirectory fails} {notRoot} {
cleanup
- file mkdir td1/td2
+ file mkdir [file join td1 td2]
list [catch {file delete td1} msg] $msg
} {1 {error deleting "td1": directory not empty}}
+test fCmd-5.11 {TclFileDeleteCmd: TclpRemoveDirectory with cwd inside} {notRoot} {
+ cleanup
+ set dir [pwd]
+ file mkdir [file join td1 td2]
+ cd [file join td1 td2]
+ set res [list [catch {file delete -force [file dirname [pwd]]} msg]]
+ cd $dir
+ lappend res [file exists td1] $msg
+} {0 0 {}}
+test fCmd-5.12 {TclFileDeleteCmd: TclpRemoveDirectory with bad perms} {unixOnly} {
+ cleanup
+ file mkdir [file join td1 td2]
+ #exec chmod u-rwx [file join td1 td2]
+ file attributes [file join td1 td2] -permissions u+rwx
+ set res [list [catch {file delete -force td1} msg]]
+ lappend res [file exists td1] $msg
+} {0 0 {}}
test fCmd-6.1 {CopyRenameOneFile: bad source} {notRoot} {
# can't test this, because it's caught by FileCopyRename