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

Side by Side Diff: components/nacl/loader/nonsfi/nonsfi_sandbox_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
« no previous file with comments | « components/nacl/loader/nonsfi/nonsfi_sandbox_sigsys_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <errno.h> 11 #include <errno.h>
12 #include <fcntl.h> 12 #include <fcntl.h>
13 #include <pthread.h> 13 #include <pthread.h>
14 #include <sched.h> 14 #include <sched.h>
15 #include <signal.h> 15 #include <signal.h>
16 #include <stdlib.h> 16 #include <stdlib.h>
17 #include <string.h> 17 #include <string.h>
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 RESTRICT_SYSCALL_EPERM_TEST(madvise); 507 RESTRICT_SYSCALL_EPERM_TEST(madvise);
508 RESTRICT_SYSCALL_EPERM_TEST(open); 508 RESTRICT_SYSCALL_EPERM_TEST(open);
509 RESTRICT_SYSCALL_EPERM_TEST(ptrace); 509 RESTRICT_SYSCALL_EPERM_TEST(ptrace);
510 RESTRICT_SYSCALL_EPERM_TEST(set_robust_list); 510 RESTRICT_SYSCALL_EPERM_TEST(set_robust_list);
511 #if defined(__i386__) || defined(__x86_64__) 511 #if defined(__i386__) || defined(__x86_64__)
512 RESTRICT_SYSCALL_EPERM_TEST(time); 512 RESTRICT_SYSCALL_EPERM_TEST(time);
513 #endif 513 #endif
514 514
515 } // namespace 515 } // namespace
516 516
517 #endif // !ADDRESS_SANITIZER && !THREAD_SANITIZER 517 #endif // !ADDRESS_SANITIZER && !THREAD_SANITIZER &&
518 // !MEMORY_SANITIZER && !LEAK_SANITIZER
OLDNEW
« no previous file with comments | « components/nacl/loader/nonsfi/nonsfi_sandbox_sigsys_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698