summaryrefslogtreecommitdiffstats
path: root/tests/unixFCmd.test
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-08-08 10:41:21 (GMT)
committerhobbs <hobbs>2002-08-08 10:41:21 (GMT)
commit17dd87021fe412fb88af83f2f75181c93d685ee9 (patch)
treeca17e69372834b2a3671691857a312c6b8cfcad4 /tests/unixFCmd.test
parent1d73c07b16f3304b87070edf4a7aee24a263402f (diff)
downloadtcl-17dd87021fe412fb88af83f2f75181c93d685ee9.zip
tcl-17dd87021fe412fb88af83f2f75181c93d685ee9.tar.gz
tcl-17dd87021fe412fb88af83f2f75181c93d685ee9.tar.bz2
[Patch #591647] (darley)
(CopyRenameOneFile): this is currently disabled by default until further issues with such behavior (like relative links) can be handled correctly.
Diffstat (limited to 'tests/unixFCmd.test')
-rw-r--r--tests/unixFCmd.test12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/unixFCmd.test b/tests/unixFCmd.test
index 408fe1e..c274322 100644
--- a/tests/unixFCmd.test
+++ b/tests/unixFCmd.test
@@ -9,7 +9,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: unixFCmd.test,v 1.15 2002/08/08 08:56:21 hobbs Exp $
+# RCS: @(#) $Id: unixFCmd.test,v 1.16 2002/08/08 10:41:22 hobbs Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -127,7 +127,7 @@ test unixFCmd-2.1 {TclpCopyFile: target exists: lstat(dst) == 0} \
close [open tf2 a]
file copy -force tf1 tf2
} {}
-test unixFCmd-2.2 {TclpCopyFile: src is symlink} {unixOnly notRoot} {
+test unixFCmd-2.2.1 {TclpCopyFile: src is symlink} {unixOnly notRoot dontCopyLinks} {
# copying links should end up with real files
cleanup
close [open tf1 a]
@@ -135,6 +135,14 @@ test unixFCmd-2.2 {TclpCopyFile: src is symlink} {unixOnly notRoot} {
file copy tf2 tf3
file type tf3
} {file}
+test unixFCmd-2.2.2 {TclpCopyFile: src is symlink} {unixOnly notRoot} {
+ # copying links should end up with the links copied
+ cleanup
+ close [open tf1 a]
+ file link -symbolic tf2 tf1
+ file copy tf2 tf3
+ file type tf3
+} {link}
test unixFCmd-2.3 {TclpCopyFile: src is block} {unixOnly notRoot} {
cleanup
set null "/dev/null"