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 d1899c3ee83f056e3b23302b83767c11e58223ab..e4b5669de0800da6b917acfaa168370f764ba579 100644 |
--- a/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc |
+++ b/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc |
@@ -176,7 +176,7 @@ BPF_TEST_C(BaselinePolicy, Socketpair, BaselinePolicy) { |
} |
// Not all architectures can restrict the domain for socketpair(). |
-#if defined(__x86_64__) || defined(__arm__) |
+#if defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) |
BPF_DEATH_TEST_C(BaselinePolicy, |
SocketpairWrongDomain, |
DEATH_SEGV_MESSAGE(GetErrorMessageContentForTests()), |
@@ -185,7 +185,7 @@ BPF_DEATH_TEST_C(BaselinePolicy, |
ignore_result(socketpair(AF_INET, SOCK_STREAM, 0, sv)); |
_exit(1); |
} |
-#endif // defined(__x86_64__) || defined(__arm__) |
+#endif // defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) |
BPF_TEST_C(BaselinePolicy, EPERM_open, BaselinePolicy) { |
errno = 0; |
@@ -236,18 +236,20 @@ TEST_BASELINE_SIGSYS(__NR_sched_setaffinity); |
TEST_BASELINE_SIGSYS(__NR_timer_create); |
TEST_BASELINE_SIGSYS(__NR_io_cancel); |
TEST_BASELINE_SIGSYS(__NR_ptrace); |
+#if !defined(__aarch64__) |
jln (very slow on Chromium)
2014/08/21 19:04:53
I'm not sure why this list is not sorted (almost c
leecam
2014/08/22 10:44:17
Done.
|
TEST_BASELINE_SIGSYS(__NR_eventfd); |
+TEST_BASELINE_SIGSYS(__NR_inotify_init); |
+TEST_BASELINE_SIGSYS(__NR_vserver); |
+#endif |
TEST_BASELINE_SIGSYS(__NR_fgetxattr); |
TEST_BASELINE_SIGSYS(__NR_fanotify_init); |
TEST_BASELINE_SIGSYS(__NR_swapon); |
TEST_BASELINE_SIGSYS(__NR_chroot); |
TEST_BASELINE_SIGSYS(__NR_acct); |
TEST_BASELINE_SIGSYS(__NR_sysinfo); |
-TEST_BASELINE_SIGSYS(__NR_inotify_init); |
TEST_BASELINE_SIGSYS(__NR_init_module); |
TEST_BASELINE_SIGSYS(__NR_keyctl); |
TEST_BASELINE_SIGSYS(__NR_mq_open); |
-TEST_BASELINE_SIGSYS(__NR_vserver); |
TEST_BASELINE_SIGSYS(__NR_getcpu); |
TEST_BASELINE_SIGSYS(__NR_setpgid); |
TEST_BASELINE_SIGSYS(__NR_getitimer); |