mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
sys::process::get_id() now returns the process ID instead of a process handle on Windows. Patch thanks to Kim Gräsman!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183621 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -26,7 +26,7 @@ TEST(ProcessTest, SelfProcess) {
|
||||
#if defined(LLVM_ON_UNIX)
|
||||
EXPECT_EQ(getpid(), process::get_self()->get_id());
|
||||
#elif defined(LLVM_ON_WIN32)
|
||||
EXPECT_EQ(GetCurrentProcess(), process::get_self()->get_id());
|
||||
EXPECT_EQ(GetCurrentProcessId(), process::get_self()->get_id());
|
||||
#endif
|
||||
|
||||
EXPECT_LT(1u, process::get_self()->page_size());
|
||||
|
Reference in New Issue
Block a user