From: Jonas Devlieghere Date: Fri, 13 Sep 2019 21:15:03 +0000 (+0000) Subject: [test] Print the log output on failure. X-Git-Tag: llvmorg-11-init~9209 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3e27633a839cf1c45b640f88e00530c59f10e8d;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/lldb/packages/Python/lldbsuite/test/api/log/TestAPILog.py b/lldb/packages/Python/lldbsuite/test/api/log/TestAPILog.py index 450d620..68384f3 100644 --- a/lldb/packages/Python/lldbsuite/test/api/log/TestAPILog.py +++ b/lldb/packages/Python/lldbsuite/test/api/log/TestAPILog.py @@ -44,5 +44,5 @@ class APILogTestCase(TestBase): create_target = 'lldb::SBTarget lldb::SBDebugger::CreateTarget(const char *) (0x{}, "")'.format( debugger_addr) - self.assertTrue(get_scripting_language in log) - self.assertTrue(create_target in log) + self.assertTrue(get_scripting_language in log, log) + self.assertTrue(create_target in log, log)