Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: components/nacl/loader/nonsfi/nonsfi_sandbox_sigsys_unittest.cc

Issue 408813003: Do not run non-SFI NaCl tests under any sanitizer tools. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // ASAN internally uses some syscalls which non-SFI NaCl disallows. 5 // Sanitizers internally use some syscalls which non-SFI NaCl disallows.
6 // Seccomp-BPF tests die under TSAN v2. See http://crbug.com/356588 6 #if !defined(ADDRESS_SANITIZER) && !defined(THREAD_SANITIZER) && \
7 #if !defined(ADDRESS_SANITIZER) && !defined(THREAD_SANITIZER) 7 !defined(MEMORY_SANITIZER) && !defined(LEAK_SANITIZER)
8 8
9 #include "components/nacl/loader/nonsfi/nonsfi_sandbox.h" 9 #include "components/nacl/loader/nonsfi/nonsfi_sandbox.h"
10 10
11 #include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h" 11 #include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h"
12 #include "sandbox/linux/seccomp-bpf/bpf_tests.h" 12 #include "sandbox/linux/seccomp-bpf/bpf_tests.h"
13 13
14 namespace { 14 namespace {
15 15
16 // Test cases in this file just make sure not-whitelisted syscalls 16 // Test cases in this file just make sure not-whitelisted syscalls
17 // are appropriately disallowed. They should raise SIGSYS regardless 17 // are appropriately disallowed. They should raise SIGSYS regardless
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 // ARM specific syscalls. 606 // ARM specific syscalls.
607 #if defined(__arm__) 607 #if defined(__arm__)
608 RESTRICT_ARM_SYSCALL_DEATH_TEST(breakpoint); 608 RESTRICT_ARM_SYSCALL_DEATH_TEST(breakpoint);
609 RESTRICT_ARM_SYSCALL_DEATH_TEST(usr26); 609 RESTRICT_ARM_SYSCALL_DEATH_TEST(usr26);
610 RESTRICT_ARM_SYSCALL_DEATH_TEST(usr32); 610 RESTRICT_ARM_SYSCALL_DEATH_TEST(usr32);
611 RESTRICT_ARM_SYSCALL_DEATH_TEST(set_tls); 611 RESTRICT_ARM_SYSCALL_DEATH_TEST(set_tls);
612 #endif 612 #endif
613 613
614 } // namespace 614 } // namespace
615 615
616 #endif // !ADDRESS_SANITIZER && !THREAD_SANITIZER 616 #endif // !ADDRESS_SANITIZER && !THREAD_SANITIZER &&
617 // !MEMORY_SANITIZER && !LEAK_SANITIZER
OLDNEW
« no previous file with comments | « chrome/test/nacl/nacl_browsertest_util.h ('k') | components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698