summaryrefslogtreecommitdiffstats
path: root/test/option-c.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-09-09 03:31:10 (GMT)
committerSteven Knight <knight@baldmt.com>2002-09-09 03:31:10 (GMT)
commitb18c0d85f90d17412960c39a9c935af9796a8cea (patch)
tree1dc031738458c71e519198d503a32d86a64eac2b /test/option-c.py
parent596f9fa6bed4777348f005fb98f8b67dda93b515 (diff)
downloadSCons-b18c0d85f90d17412960c39a9c935af9796a8cea.zip
SCons-b18c0d85f90d17412960c39a9c935af9796a8cea.tar.gz
SCons-b18c0d85f90d17412960c39a9c935af9796a8cea.tar.bz2
Warn when -c can't remove a file.
Diffstat (limited to 'test/option-c.py')
-rw-r--r--test/option-c.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/option-c.py b/test/option-c.py
index a686f5a..6bb25da 100644
--- a/test/option-c.py
+++ b/test/option-c.py
@@ -121,5 +121,14 @@ test.fail_test(test.read(test.workpath('foo2.xxx')) != "foo2.in\n")
test.fail_test(test.read(test.workpath('foo2.out')) != "foo2.in\n")
test.fail_test(test.read(test.workpath('foo3.out')) != "foo3.in\n")
+test.writable('.', 0)
+f = open(test.workpath('foo1.out'))
+
+test.run(arguments = '-c foo1.out',
+ stdout = "scons: Could not remove 'foo1.out': Permission denied\n")
+
+test.fail_test(not os.path.exists(test.workpath('foo1.out')))
+
+f.close()
+
test.pass_test()
-