summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-01-18 17:31:55 +0000
committerPavel Labath <labath@google.com>2017-01-18 17:31:55 +0000
commitc69d0a203bdf999404610b79a43d66e8395ce0e9 (patch)
tree977ec777e37e093f879da32a1f0382cc74e5d1eb
parenta4e63ead4b43b0f6be70744b553a2dcb9bdbf605 (diff)
downloadbcm5719-llvm-c69d0a203bdf999404610b79a43d66e8395ce0e9.tar.gz
bcm5719-llvm-c69d0a203bdf999404610b79a43d66e8395ce0e9.zip
Fix new Log unit test
the test was flaky because I specified the format string for the process id incorrectly. This should fix it. llvm-svn: 292414
-rw-r--r--lldb/unittests/Core/LogTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/unittests/Core/LogTest.cpp b/lldb/unittests/Core/LogTest.cpp
index 60c386aafd8..515d9201f74 100644
--- a/lldb/unittests/Core/LogTest.cpp
+++ b/lldb/unittests/Core/LogTest.cpp
@@ -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(),
OpenPOWER on IntegriCloud