diff options
author | Steven Knight <knight@baldmt.com> | 2003-07-27 06:49:12 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-07-27 06:49:12 (GMT) |
commit | 60f78848e0e58a6002942ef73b8518023e2f8aa7 (patch) | |
tree | 71836c065f1c744cf8f1d7f691a11bc6b75ec8ef /test/Scanner-exception.py | |
parent | e9390044311958512a370110b6f6473c320ab522 (diff) | |
download | SCons-60f78848e0e58a6002942ef73b8518023e2f8aa7.zip SCons-60f78848e0e58a6002942ef73b8518023e2f8aa7.tar.gz SCons-60f78848e0e58a6002942ef73b8518023e2f8aa7.tar.bz2 |
Record and print an internal stack trace when Taskmaster detects errors for easier debugging. (Gary Oberbrunner) Better debugging of Python exceptions (like TypeErrors) in SConscript files.
Diffstat (limited to 'test/Scanner-exception.py')
-rw-r--r-- | test/Scanner-exception.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/Scanner-exception.py b/test/Scanner-exception.py index 8fe7875..53ae7a0 100644 --- a/test/Scanner-exception.py +++ b/test/Scanner-exception.py @@ -24,6 +24,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" +import string import sys import TestSCons @@ -107,6 +108,11 @@ test.write('zzz', "zzz 1\n") test.run(arguments = '.', status = 2, - stderr = "scons: *** kfile_scan error: yyy 1\n") + stderr = None) +test.fail_test(not test.match_re_dotall(test.stderr(), """\ +scons: \\*\\*\\* kfile_scan error: yyy 1 +scons: internal stack trace: + File .* +""")) test.pass_test() |