diff options
author | Steven Knight <knight@baldmt.com> | 2003-08-27 02:56:22 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-08-27 02:56:22 (GMT) |
commit | 4bc06f73db7d3edafabf4dc5677d8172b0e2e5f3 (patch) | |
tree | 0fc93b1daf62dcdd7893bbcc977cb73e8718693e /test/BuildDir.py | |
parent | b9dfe8b36cfaed3823ddfaef5c89f83da80c7273 (diff) | |
download | SCons-4bc06f73db7d3edafabf4dc5677d8172b0e2e5f3.zip SCons-4bc06f73db7d3edafabf4dc5677d8172b0e2e5f3.tar.gz SCons-4bc06f73db7d3edafabf4dc5677d8172b0e2e5f3.tar.bz2 |
Re-synchronize the CVS tree after a SourceForge file system catastrophe.
Diffstat (limited to 'test/BuildDir.py')
-rw-r--r-- | test/BuildDir.py | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/test/BuildDir.py b/test/BuildDir.py index 63ecf6e..bca4104 100644 --- a/test/BuildDir.py +++ b/test/BuildDir.py @@ -213,7 +213,21 @@ test.write(['work1', 'src', 'b2.for'], r""" PRINT *, 'b2.for' """) -test.run(chdir='work1', arguments = '. ../build') +# Some releases of freeBSD seem to have library complaints about +# tempnam(). Filter out these annoying messages before checking for +# error output. +def blank_output(err): + if not err: + return 1 + stderrlines = filter(lambda l: l, string.split(err, '\n')) + msg = "warning: tempnam() possibly used unsafely" + stderrlines = filter(lambda l, msg=msg: string.find(l, msg) == -1, + stderrlines) + return len(stderrlines) == 0 + +test.run(chdir='work1', arguments = '. ../build', stderr=None) + +test.fail_test(not blank_output(test.stderr())) test.run(program = foo11, stdout = "f1.c\n") test.run(program = foo12, stdout = "f2.c\n") @@ -289,7 +303,9 @@ test.write(['work1', 'src', 'f4h.in'], r""" #define F4_STR "f4.c 2\n" """) -test.run(chdir='work1', arguments = '../build/var5') +test.run(chdir='work1', arguments = '../build/var5', stderr=None) + +test.fail_test(not blank_output(test.stderr())) test.run(program = foo51, stdout = "f1.c 2\n") test.run(program = test.workpath('build', 'var5', 'foo3' + _exe), @@ -334,7 +350,9 @@ Import('env') env.Program('prog.c') """) -test.run(chdir='work2', arguments='.') +test.run(chdir='work2', arguments='.', stderr=None) + +test.fail_test(not blank_output(test.stderr())) test.up_to_date(chdir='work2', arguments='.') @@ -365,4 +383,3 @@ non_existing.h: """) test.pass_test() - |