Fix Log unit tests

the llvm function for getting the thread name dropped the _np suffix
during review. Zachary's commit did not reflect that.

llvm-svn: 297013
This commit is contained in:
Pavel Labath 2017-03-06 15:17:36 +00:00
parent 967fc1cef4
commit ca367ce3ad
1 changed files with 2 additions and 3 deletions

View File

@ -73,9 +73,8 @@ TEST(LogTest, log_options) {
"World 47\n",
GetLogString(LLDB_LOG_OPTION_PREPEND_FILE_FUNCTION, "Hello World {0}", 47));
EXPECT_EQ(llvm::formatv("[{0,0+4}/{1,0+4}] Hello World 47\n",
::getpid(),
llvm::get_threadid_np())
EXPECT_EQ(llvm::formatv("[{0,0+4}/{1,0+4}] Hello World 47\n", ::getpid(),
llvm::get_threadid())
.str(),
GetLogString(LLDB_LOG_OPTION_PREPEND_PROC_AND_THREAD,
"Hello World {0}", 47));