diff options
Diffstat (limited to 'base/process_util_unittest.cc')
-rw-r--r-- | base/process_util_unittest.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/base/process_util_unittest.cc b/base/process_util_unittest.cc index 1e5c272..7b30be6 100644 --- a/base/process_util_unittest.cc +++ b/base/process_util_unittest.cc @@ -270,6 +270,13 @@ TEST_F(ProcessUtilTest, GetAppOutput) { EXPECT_STREQ("foobar42", output.c_str()); } +#if defined(OS_LINUX) +TEST_F(ProcessUtilTest, GetParentProcessId) { + base::ProcessId ppid = GetParentProcessId(GetCurrentProcId()); + EXPECT_EQ(ppid, getppid()); +} +#endif + #endif // defined(OS_POSIX) } // namespace base |