Index: test/cctest/test-platform-linux.cc |
diff --git a/test/cctest/test-platform-linux.cc b/test/cctest/test-platform-linux.cc |
index 2a8d49785091db0375be3dae2e1fa34c5252ad94..9c9ac76f4f1507205cf5c3e4fc054140f34ecdee 100644 |
--- a/test/cctest/test-platform-linux.cc |
+++ b/test/cctest/test-platform-linux.cc |
@@ -79,3 +79,8 @@ TEST(VirtualMemory) { |
CHECK(vm->Uncommit(block_addr, block_size)); |
delete vm; |
} |
+ |
+TEST(GetCurrentProcessId) { |
+ OS::SetUp(); |
+ CHECK_EQ(static_cast<int>(getpid()), OS::GetCurrentProcessId()); |
+} |