Author: labath Date: Wed Jan 18 11:31:55 2017 New Revision: 292414 URL: http://llvm.org/viewvc/llvm-project?rev=292414&view=rev Log: Fix new Log unit test
the test was flaky because I specified the format string for the process id incorrectly. This should fix it. Modified: lldb/trunk/unittests/Core/LogTest.cpp Modified: lldb/trunk/unittests/Core/LogTest.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/Core/LogTest.cpp?rev=292414&r1=292413&r2=292414&view=diff ============================================================================== --- lldb/trunk/unittests/Core/LogTest.cpp (original) +++ lldb/trunk/unittests/Core/LogTest.cpp Wed Jan 18 11:31:55 2017 @@ -48,7 +48,7 @@ TEST(LogTest, log_options) { "World 47\n", GetLogString(LLDB_LOG_OPTION_PREPEND_FILE_FUNCTION, "Hello World {0}", 47)); - EXPECT_EQ(llvm::formatv("[{0}/{1}] Hello World 47\n", + EXPECT_EQ(llvm::formatv("[{0,0+4}/{1,0+4}] Hello World 47\n", Host::GetCurrentProcessID(), Host::GetCurrentThreadID()) .str(), _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits