diff options
author | Steven Knight <knight@baldmt.com> | 2002-12-11 06:41:04 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-12-11 06:41:04 (GMT) |
commit | 415da53eb50ff3efadc22abfeeba1e7eb1042f71 (patch) | |
tree | 425bf1e84c7f7d029ef34c7c71258dcc2ab3aa98 /test | |
parent | eec2b45582390844927b2332ebd7b2dda05045a4 (diff) | |
download | SCons-415da53eb50ff3efadc22abfeeba1e7eb1042f71.zip SCons-415da53eb50ff3efadc22abfeeba1e7eb1042f71.tar.gz SCons-415da53eb50ff3efadc22abfeeba1e7eb1042f71.tar.bz2 |
Use pickle for .sconsign. (Anthony Roach)
Diffstat (limited to 'test')
-rw-r--r-- | test/sconsign.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/test/sconsign.py b/test/sconsign.py index 6da6717..ca8792d 100644 --- a/test/sconsign.py +++ b/test/sconsign.py @@ -27,6 +27,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import os import TestSCons import TestCmd +import cPickle test = TestSCons.TestSCons(match = TestCmd.match_re) @@ -59,8 +60,8 @@ sub1__sconsign = test.workpath('sub1', '.sconsign') sub2__sconsign = test.workpath('sub2', '.sconsign') sub3__sconsign = test.workpath('sub3', '.sconsign') -test.write(sub1__sconsign, "") -test.write(sub2__sconsign, "") +cPickle.dump({}, open(sub1__sconsign, 'wb'), 1) +cPickle.dump({}, open(sub2__sconsign, 'wb'), 1) os.chmod(sub1__sconsign, 0444) @@ -89,14 +90,11 @@ SCons warning: Ignoring corrupt .sconsign file: sub1..sconsign stdout = test.wrap_stdout('foo.in->sub1.foo.out\n') -test.write(sub1__sconsign, 'garbage') -test.run(arguments = '.', stderr=stderr, stdout=stdout) - test.write(sub1__sconsign, 'not:a:sconsign:file') -test.run(arguments = '.', stderr=stderr, stdout=stdout) +test.run(arguments = '.', stderr=stderr, stdout=stdout, status=2) test.write(sub1__sconsign, '\0\0\0\0\0\0\0\0\0\0\0\0\0\0') -test.run(arguments = '.', stderr=stderr, stdout=stdout) +test.run(arguments = '.', stderr=stderr, stdout=stdout, status=2) test.pass_test() |