mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 01:12:13 +00:00
Cleaned up the Boost Build testing framework implementation a bit.
[SVN r78913]
This commit is contained in:
@@ -573,7 +573,7 @@ class Tester(TestCmd.TestCmd):
|
||||
else:
|
||||
return result
|
||||
|
||||
def fail_test(self, condition, dump_stdio=True, *args):
|
||||
def fail_test(self, condition, dump_stdio=True, dump_stack=True):
|
||||
if not condition:
|
||||
return
|
||||
|
||||
@@ -598,7 +598,8 @@ class Tester(TestCmd.TestCmd):
|
||||
print "The failed command was:"
|
||||
print ' '.join(self.last_program_invocation)
|
||||
|
||||
annotate_stack_trace()
|
||||
if dump_stack:
|
||||
annotate_stack_trace()
|
||||
sys.exit(1)
|
||||
|
||||
# A number of methods below check expectations with actual difference
|
||||
|
||||
Reference in New Issue
Block a user