diff options
author | Steven Knight <knight@baldmt.com> | 2002-09-09 03:31:10 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-09-09 03:31:10 (GMT) |
commit | b18c0d85f90d17412960c39a9c935af9796a8cea (patch) | |
tree | 1dc031738458c71e519198d503a32d86a64eac2b /test/option-c.py | |
parent | 596f9fa6bed4777348f005fb98f8b67dda93b515 (diff) | |
download | SCons-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.py | 11 |
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() - |