=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: cmd/tests: Show that read-only files are MOVEable.

Alexandre Julliard julliard at winehq.org
Thu Oct 13 14:10:11 CDT 2011


Module: wine
Branch: master
Commit: ad9ae2b8ff91a0148b4216a8eb964c41588e18d1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ad9ae2b8ff91a0148b4216a8eb964c41588e18d1

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Thu Oct 13 17:30:16 2011 +0200

cmd/tests: Show that read-only files are MOVEable.

---

 programs/cmd/tests/test_builtins.cmd     |   11 +++++++++++
 programs/cmd/tests/test_builtins.cmd.exp |    1 +
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd
index 49e3fde..1967e42 100644
--- a/programs/cmd/tests/test_builtins.cmd
+++ b/programs/cmd/tests/test_builtins.cmd
@@ -932,6 +932,17 @@ if not exist bar (
 )
 type baz
 
+attrib +r baz
+move baz bazro > nul 2>&1
+if not exist baz (
+    if exist bazro (
+        echo read-only files are moveable
+        move bazro baz > nul 2>&1
+    )
+) else (
+    echo read-only file not moved!
+)
+attrib -r baz
 mkdir rep
 move baz rep > nul 2>&1
 if not exist baz (
diff --git a/programs/cmd/tests/test_builtins.cmd.exp b/programs/cmd/tests/test_builtins.cmd.exp
index 33a8113..2318d08 100644
--- a/programs/cmd/tests/test_builtins.cmd.exp
+++ b/programs/cmd/tests/test_builtins.cmd.exp
@@ -609,6 +609,7 @@ bar
 file move succeeded
 @todo_wine at file move with overwrite succeeded at or_broken@file overwrite impossible!
 @todo_wine at bar@or_broken at baz
+ at todo_wine@read-only files are moveable
 file moved in subdirectory
 @todo_wine at moving a file to itself is a no-op at or_broken@moving a file to itself should be a no-op!
 @todo_wine at ErrorLevel: 0 at or_broken@ErrorLevel: 1




More information about the wine-cvs mailing list