Skip to content

Commit a3e2763

Browse files
committed
[test] Print the log output on failure.
This ensures that if the assertion fails we dump the log content. This should help me investigate what the output looks like on Windows, where the test is failing. llvm-svn: 371899
1 parent fe4dc2e commit a3e2763

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/packages/Python/lldbsuite/test/api/log/TestAPILog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ def cleanup():
4444
create_target = 'lldb::SBTarget lldb::SBDebugger::CreateTarget(const char *) (0x{}, "")'.format(
4545
debugger_addr)
4646

47-
self.assertTrue(get_scripting_language in log)
48-
self.assertTrue(create_target in log)
47+
self.assertTrue(get_scripting_language in log, log)
48+
self.assertTrue(create_target in log, log)

0 commit comments

Comments
 (0)