diff options
author | mostynb <mostynb@opera.com> | 2015-06-18 14:12:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-18 21:13:26 +0000 |
commit | 3cf743a247fbd50936c0eaf395c2b1345813661b (patch) | |
tree | cef475f65ce51b574d7c0bc7ad462b0fc15f0d47 /base | |
parent | dda2ba02880804364b1a998498c33374e8b918b8 (diff) | |
download | chromium_src-3cf743a247fbd50936c0eaf395c2b1345813661b.zip chromium_src-3cf743a247fbd50936c0eaf395c2b1345813661b.tar.gz chromium_src-3cf743a247fbd50936c0eaf395c2b1345813661b.tar.bz2 |
ifdef out ProcessUtilTest.CloneFlags on linux with old kernel headers
This allows the rest of base_unittests to build/run on such
systems.
BUG=312380
Review URL: https://codereview.chromium.org/1189683004
Cr-Commit-Position: refs/heads/master@{#335123}
Diffstat (limited to 'base')
-rw-r--r-- | base/process/process_util_unittest.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/process/process_util_unittest.cc b/base/process/process_util_unittest.cc index 1f7f1b2..be1a000 100644 --- a/base/process/process_util_unittest.cc +++ b/base/process/process_util_unittest.cc @@ -1025,6 +1025,7 @@ MULTIPROCESS_TEST_MAIN(CheckPidProcess) { return kSuccess; } +#if defined(CLONE_NEWUSER) && defined(CLONE_NEWPID) TEST_F(ProcessUtilTest, CloneFlags) { if (RunningOnValgrind() || !base::PathExists(FilePath("/proc/self/ns/user")) || @@ -1043,6 +1044,7 @@ TEST_F(ProcessUtilTest, CloneFlags) { EXPECT_TRUE(process.WaitForExit(&exit_code)); EXPECT_EQ(kSuccess, exit_code); } +#endif TEST(ForkWithFlagsTest, UpdatesPidCache) { // The libc clone function, which allows ForkWithFlags to keep the pid cache |