diff options
author | Steven Knight <knight@baldmt.com> | 2001-09-21 02:20:19 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2001-09-21 02:20:19 (GMT) |
commit | 635256859678b6b862b89d4c5ce890b4923e8394 (patch) | |
tree | 401e130d6aefcd0ec0390497fe1bc8d58dd02b37 /test/errors.py | |
parent | c8bbea81460524f6469fa4b6afc2be5a6f338edc (diff) | |
download | SCons-635256859678b6b862b89d4c5ce890b4923e8394.zip SCons-635256859678b6b862b89d4c5ce890b4923e8394.tar.gz SCons-635256859678b6b862b89d4c5ce890b4923e8394.tar.bz2 |
Error message if no SConstruct file.
Diffstat (limited to 'test/errors.py')
-rw-r--r-- | test/errors.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/test/errors.py b/test/errors.py index 3c8663b..f94ebe5 100644 --- a/test/errors.py +++ b/test/errors.py @@ -10,7 +10,9 @@ test.write('SConstruct1', """ a ! x """) -test.run(arguments='-f SConstruct1', stderr = """ File "SConstruct1", line 2 +test.run(arguments='-f SConstruct1', + stdout = "", + stderr = """ File "SConstruct1", line 2 a ! x @@ -24,7 +26,10 @@ SyntaxError: invalid syntax test.write('SConstruct2', """ raise UserError, 'Depends() require both sources and targets.' """) -test.run(arguments='-f SConstruct2', stderr = """ + +test.run(arguments='-f SConstruct2', + stdout = "", + stderr = """ SCons error: Depends\(\) require both sources and targets. File "SConstruct2", line 2, in \? """) @@ -32,7 +37,10 @@ File "SConstruct2", line 2, in \? test.write('SConstruct3', """ raise InternalError, 'error inside' """) -test.run(arguments='-f SConstruct3', stderr = r"""Traceback \((most recent call|innermost) last\): + +test.run(arguments='-f SConstruct3', + stdout = "other errors\n", + stderr = r"""Traceback \((most recent call|innermost) last\): File ".*scons(\.py)?", line \d+, in \? main\(\) File ".*scons(\.py)?", line \d+, in main |