summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/ProcessTest.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-06-08 20:29:03 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-06-08 20:29:03 +0000
commitf0b5384ef93974c2f2c006110beb87a32ca1caf1 (patch)
tree75a90dc1090c7962f3d13eed2a111fc9e9ebf51c /llvm/unittests/Support/ProcessTest.cpp
parent475671057c0d2aa32af18bc6b60cf86d500da889 (diff)
downloadbcm5719-llvm-f0b5384ef93974c2f2c006110beb87a32ca1caf1.tar.gz
bcm5719-llvm-f0b5384ef93974c2f2c006110beb87a32ca1caf1.zip
sys::process::get_id() now returns the process ID instead of a process handle on Windows. Patch thanks to Kim Gräsman!
llvm-svn: 183621
Diffstat (limited to 'llvm/unittests/Support/ProcessTest.cpp')
-rw-r--r--llvm/unittests/Support/ProcessTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/ProcessTest.cpp b/llvm/unittests/Support/ProcessTest.cpp
index e57c0e6eaf8..eff9c711a1a 100644
--- a/llvm/unittests/Support/ProcessTest.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud