| Index: sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc
|
| diff --git a/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc b/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc
|
| index f0392b1a0028b677d906ec3d7ddea5531f4eee0f..d2bb18f036ff0a7f7ef822edbc27031768f60aa8 100644
|
| --- a/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc
|
| +++ b/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc
|
| @@ -25,6 +25,7 @@
|
| #include "base/files/scoped_file.h"
|
| #include "base/macros.h"
|
| #include "base/posix/eintr_wrapper.h"
|
| +#include "base/synchronization/lock.h"
|
| #include "base/threading/thread.h"
|
| #include "build/build_config.h"
|
| #include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h"
|
| @@ -248,6 +249,7 @@ TEST_BASELINE_SIGSYS(__NR_inotify_init);
|
| TEST_BASELINE_SIGSYS(__NR_vserver);
|
| #endif
|
|
|
| +#if !PRIORITY_INHERITANCE_LOCKS_POSSIBLE()
|
| #if defined(LIBC_GLIBC) && !defined(OS_CHROMEOS)
|
| BPF_TEST_C(BaselinePolicy, FutexEINVAL, BaselinePolicy) {
|
| int ops[] = {
|
| @@ -260,7 +262,7 @@ BPF_TEST_C(BaselinePolicy, FutexEINVAL, BaselinePolicy) {
|
| BPF_ASSERT_EQ(EINVAL, errno);
|
| }
|
| }
|
| -#else
|
| +#else // defined(LIBC_GLIBC) && !defined(OS_CHROMEOS)
|
| BPF_DEATH_TEST_C(BaselinePolicy,
|
| FutexWithRequeuePriorityInheritence,
|
| DEATH_SEGV_MESSAGE(GetFutexErrorMessageContentForTests()),
|
| @@ -285,6 +287,7 @@ BPF_DEATH_TEST_C(BaselinePolicy,
|
| _exit(1);
|
| }
|
| #endif // defined(LIBC_GLIBC) && !defined(OS_CHROMEOS)
|
| +#endif // !PRIORITY_INHERITANCE_LOCKS_POSSIBLE()
|
|
|
| BPF_TEST_C(BaselinePolicy, PrctlDumpable, BaselinePolicy) {
|
| const int is_dumpable = prctl(PR_GET_DUMPABLE, 0, 0, 0, 0);
|
|
|