summaryrefslogtreecommitdiffstats
path: root/sandbox
diff options
context:
space:
mode:
authorJorge Lucangeli Obes <jorgelo@chromium.org>2014-10-20 10:59:44 -0700
committerJorge Lucangeli Obes <jorgelo@chromium.org>2014-10-20 18:00:26 +0000
commit5893f9aa6d302579bed743cb6377aa24c6bfe5af (patch)
tree940e9931b80b6ed71a11dc257a4b3339b71203e3 /sandbox
parent487f2f57e7d1b108d32b382f4c1372600f4e92c5 (diff)
downloadchromium_src-5893f9aa6d302579bed743cb6377aa24c6bfe5af.zip
chromium_src-5893f9aa6d302579bed743cb6377aa24c6bfe5af.tar.gz
chromium_src-5893f9aa6d302579bed743cb6377aa24c6bfe5af.tar.bz2
Disable BaselinePolicy.SIGSYS_InvalidSyscall on Chrome OS.
BUG=424973 TEST=chromeos=1 compile, TEST=out_chromeos/Debug/sandbox_linux_unittests --gtest_filter=*SIGSYS_InvalidSyscall* ... 0 tests run R=mdempsky@chromium.org Review URL: https://codereview.chromium.org/646853005 Cr-Commit-Position: refs/heads/master@{#300299}
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc b/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc
index a71975b..76eef064 100644
--- a/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc
+++ b/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc
@@ -213,12 +213,15 @@ BPF_TEST_C(BaselinePolicy, EPERM_getcwd, BaselinePolicy) {
BPF_ASSERT_EQ(EPERM, errno);
}
+// TODO(jorgelo): re-enable this after crbug.com/424973 is fixed.
+#if !defined(OS_CHROMEOS)
BPF_DEATH_TEST_C(BaselinePolicy,
SIGSYS_InvalidSyscall,
DEATH_SEGV_MESSAGE(GetErrorMessageContentForTests()),
BaselinePolicy) {
Syscall::InvalidCall();
}
+#endif
// A failing test using this macro could be problematic since we perform
// system calls by passing "0" as every argument.