diff options
author | Steven Knight <knight@baldmt.com> | 2002-06-26 01:47:54 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-06-26 01:47:54 (GMT) |
commit | 5dd473bc401492d93a372b03965f2718b05426b8 (patch) | |
tree | cef954000dc721951f583f9d1367610cb1a54823 /test/Install.py | |
parent | 651972979462ebc48aac362dd53119ef79291cf5 (diff) | |
download | SCons-5dd473bc401492d93a372b03965f2718b05426b8.zip SCons-5dd473bc401492d93a372b03965f2718b05426b8.tar.gz SCons-5dd473bc401492d93a372b03965f2718b05426b8.tar.bz2 |
Win32 portability fixes for various tests.
Diffstat (limited to 'test/Install.py')
-rw-r--r-- | test/Install.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/Install.py b/test/Install.py index 3a3c2bc..cd0238b 100644 --- a/test/Install.py +++ b/test/Install.py @@ -95,8 +95,8 @@ test.run(arguments = '.') test.fail_test(oldtime1 == os.path.getmtime(foo1)) test.fail_test(oldtime2 != os.path.getmtime(foo2)) -# Verify that scons prints an error message if a target can not be unlinked before -# building it: +# Verify that scons prints an error message +# if a target can not be unlinked before building it: test.write('f1.c', r""" #include <stdio.h> @@ -108,7 +108,10 @@ int main(void) """) os.chmod(test.workpath('.'), 0555) +f = open(test.workpath('f1' + _obj), 'rb') test.run(arguments = foo1, stderr="scons: *** [Errno 13] Permission denied: 'f1%s'\n"%_obj, status=2) +f.close() + test.pass_test() |