diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2013-06-08 20:29:03 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2013-06-08 20:29:03 +0000 |
commit | 0c793018079803628b5aeee6bbc1e6464fbefd65 (patch) | |
tree | 743379e32168eaf3e32b72cc28f4a8f625da7a77 /unittests/Support | |
parent | 1799921672835c49f6a29fc27d1840b7c36beabd (diff) | |
download | external_llvm-0c793018079803628b5aeee6bbc1e6464fbefd65.zip external_llvm-0c793018079803628b5aeee6bbc1e6464fbefd65.tar.gz external_llvm-0c793018079803628b5aeee6bbc1e6464fbefd65.tar.bz2 |
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
Diffstat (limited to 'unittests/Support')
-rw-r--r-- | unittests/Support/ProcessTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/Support/ProcessTest.cpp b/unittests/Support/ProcessTest.cpp index e57c0e6..eff9c71 100644 --- a/unittests/Support/ProcessTest.cpp +++ b/unittests/Support/ProcessTest.cpp @@ -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()); |