Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// UNSUPPORTED: ios
// UNSUPPORTED: darwin-remote
// When `external_symbolizer_path` is empty on Darwin we fallback on using
// dladdr as the symbolizer which means we get the symbol name
// but no source location. The current implementation also doesn't try to
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// UNSUPPORTED: ios
// UNSUPPORTED: darwin-remote
// FIXME(dliew): We currently have to use module map for this test due to the atos
// symbolizer changing the module name from an absolute path to just the file name.
// rdar://problem/49784442
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// UNSUPPORTED: ios
// UNSUPPORTED: darwin-remote
// RUN: %clangxx_asan -O0 -g %s -o %t.executable

// Deliberately don't produce the module map and then check that offline symbolization fails
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
// Due to a bug in atos, this only works on x86_64.
// REQUIRES: asan-64-bits

// Path returned by `which atos` is invalid on iOS.
// UNSUPPORTED: ios
// Path returned by `which atos` is invalid on non-host
// UNSUPPORTED: darwin-remote

#include <stdlib.h>
#include <string.h>
Expand Down
4 changes: 2 additions & 2 deletions compiler-rt/test/asan/TestCases/Darwin/atos-symbolizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// RUN: which atos | tr -d '\n' > %t.symbolizer_path
// RUN: %env_asan_opts=verbosity=2 ASAN_SYMBOLIZER_PATH=%{readfile:%t.symbolizer_path} not %run %t 2>&1 | FileCheck %s

// Path returned by `which atos` is invalid on iOS.
// UNSUPPORTED: ios, i386-darwin
// Path returned by `which atos` is invalid on non-host
// UNSUPPORTED: darwin-remote, i386-darwin

#include <stdlib.h>
#include <string.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// UNSUPPORTED: ios
// UNSUPPORTED: darwin-remote
// REQUIRES: darwin_log_cmd
// RUN: %clangxx_asan -fsanitize-recover=address %s -o %t
// RUN: bash -c '{ %env_asan_opts=halt_on_error=0,log_to_syslog=1 %run %t > %t.process_output.txt 2>&1 & } \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// When DYLD-inserting the ASan dylib from a different location than the
// original, make sure we don't try to reexec.

// UNSUPPORTED: ios
// UNSUPPORTED: darwin-remote

// RUN: rm -rf %t && mkdir -p %t
// RUN: %clang_asan -print-file-name=lib | tr -d '\n' > %t.lib_name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// the ASan dylib from the environment variable (both when using an absolute
// or relative path) and also that the other dylibs are left untouched.

// UNSUPPORTED: ios
// UNSUPPORTED: darwin-remote

// RUN: rm -rf %t && mkdir -p %t
// RUN: %clang_asan -print-file-name=lib | tr -d '\n' > %t.lib_name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@
// RUN: echo "=== NOTE === If you see a mismatch below, please update sanitizer_interface.inc files."
// RUN: diff %t.imports-sorted %t.exports-sorted

// UNSUPPORTED: ios
// UNSUPPORTED: darwin-remote

int main() { return 0; }
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
// Check that suppressing a function name works within a no-fork sandbox
// RUN: echo "interceptor_via_fun:createCFString" > %t.supp
// RUN: %env_asan_opts=suppressions='"%t.supp"' \
// RUN: sandbox-exec -p '(version 1)(allow default)(deny process-fork)' \
// RUN: %run %t 2>&1 | FileCheck --check-prefix=CHECK-IGNORE %s
// RUN: %run sandbox-exec -p '(version 1)(allow default)(deny process-fork)' \
// RUN: %t 2>&1 | FileCheck --check-prefix=CHECK-IGNORE %s

// sandbox-exec isn't available on iOS
// UNSUPPORTED: ios
Expand Down
4 changes: 2 additions & 2 deletions compiler-rt/test/asan/TestCases/Darwin/uuid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// RUN: %clangxx_asan %s -o %t -fsanitize-recover=address
// RUN: %env_asan_opts=print_module_map=2:halt_on_error=0 %run %t 2>&1 | FileCheck %s

// We can't run system("otool") in the simulator.
// UNSUPPORTED: ios
// We can't run system("otool") on remote devices.
// UNSUPPORTED: darwin-remote

#include <stdio.h>
#include <stdlib.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// RUN: %env_asan_opts=symbolize=0 not %run %t 2>&1 | %asan_symbolize | FileCheck %s
// REQUIRES: stable-runtime

// UNSUPPORTED: ios
// UNSUPPORTED: darwin-remote

#if !defined(SHARED_LIB)
#include <dlfcn.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This test case checks for an old bug when using plug-ins that caused
// the stack numbering to be incorrect.
// UNSUPPORTED: android
// UNSUPPORTED: ios
// UNSUPPORTED: darwin-remote

// RUN: %clangxx_asan -O0 -g %s -o %t
// RUN: %env_asan_opts=symbolize=0 not %run %t DUMMY_ARG > %t.asan_report 2>&1
Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/test/asan/TestCases/Posix/coverage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
//
// https://code.google.com/p/address-sanitizer/issues/detail?id=263
// XFAIL: android
// UNSUPPORTED: ios
// UNSUPPORTED: darwin-remote

#include <assert.h>
#include <stdio.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// XFAIL: target=arm{{.*}}

// UNSUPPORTED: ios
// UNSUPPORTED: darwin-remote

#include <new>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/test/asan/TestCases/default_ignorelist.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// FIXME: https://code.google.com/p/address-sanitizer/issues/detail?id=316
// XFAIL: android, msvc
// UNSUPPORTED: ios
// UNSUPPORTED: darwin-remote
//
// Test that ASan uses the default ignorelist from resource directory.
// RUN: %clangxx_asan -### %s 2>&1 | FileCheck %s
Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/test/asan/TestCases/log-path_test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME: https://code.google.com/p/address-sanitizer/issues/detail?id=316
// UNSUPPORTED: ios, android
// UNSUPPORTED: darwin-remote, android
//
// RUN: %clangxx_asan %s -o %t

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

// FIXME: Upload suppressions to device.
// XFAIL: android
// UNSUPPORTED: ios
// UNSUPPORTED: darwin-remote

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/test/fuzzer/afl-driver-stderr.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AFL doesn't work on Windows. No reason to test the driver.
UNSUPPORTED: target={{.*(freebsd|windows).*}}
XFAIL: ios
XFAIL: darwin-remote
RUN: %no_fuzzer_cpp_compiler %S/AFLDriverTest.cpp %libfuzzer_src/afl/afl_driver.cpp -o %t-AFLDriverTest

; Test that not specifying a stderr file isn't broken.
Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/test/fuzzer/big-file-copy.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
REQUIRES: darwin
UNSUPPORTED: ios
UNSUPPORTED: darwin-remote
RUN: %cpp_compiler %S/BigFileCopy.cpp -o %t
RUN: bash -c '%run %t -runs=1 -rss_limit_mb=4096 2>big-file-out.txt; result=$? \
RUN: %run rm -f big-file.txt big-file-out.txt && exit $result'
2 changes: 1 addition & 1 deletion compiler-rt/test/fuzzer/cross_over.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# For IOS, we fail to permute the run lines properly (rdar://99889376)
XFAIL: ios && !iossim
XFAIL: darwin-remote && !iossim
# Tests CrossOverTest.
# We want to make sure that the test can find the input
# ABCDEFGHIJ when given two other inputs in the seed corpus:
Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/test/fuzzer/merge-control-file.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# For IOS, we fail to permute the run lines properly (rdar://99889376)
XFAIL: ios && !iossim
XFAIL: darwin-remote && !iossim
RUN: mkdir -p %t
# Use a ".exe" extension because it is needed on Windows to call system()
# to execute itself again.
Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/test/fuzzer/merge-posix.test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
XFAIL: ios
XFAIL: darwin-remote
# Uses ulimit
# UNSUPPORTED: system-windows
RUN: %cpp_compiler %S/FullCoverageSetTest.cpp -o %t-FullCoverageSetTest
Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/test/fuzzer/seed_inputs.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uses echo in a way that is not supported by the iOS "run-on-device" script.
UNSUPPORTED: ios
UNSUPPORTED: darwin-remote

RUN: %cpp_compiler %S/SimpleTest.cpp -o %t-SimpleTest

Expand Down
18 changes: 11 additions & 7 deletions compiler-rt/test/lit.common.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,15 +419,19 @@ def get_ios_commands_dir():
# =========================================================================
# Target | Feature set
# =========================================================================
# macOS | darwin
# iOS device | darwin, ios
# iOS simulator | darwin, ios, iossim
# tvOS device | darwin, ios, tvos
# tvOS simulator | darwin, ios, iossim, tvos, tvossim
# watchOS device | darwin, ios, watchos
# watchOS simulator | darwin, ios, iossim, watchos, watchossim
# macOS host | darwin
# macOS device | darwin, darwin-remote
# iOS device | darwin, darwin-remote, ios
# iOS simulator | darwin, darwin-remote, ios, iossim
# tvOS device | darwin, darwin-remote, ios, tvos
# tvOS simulator | darwin, darwin-remote, ios, iossim, tvos, tvossim
# watchOS device | darwin, darwin-remote, ios, watchos
# watchOS simulator | darwin, darwin-remote, ios, iossim, watchos, watchossim
# =========================================================================

# All suites that aren't running on the host get the darwin-remote feature.
config.available_features.add("darwin-remote")

# All non-OSX targets have the ios feature (see the above table)
if config.apple_platform != "osx":
config.available_features.add("ios")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// UNSUPPORTED: x86_64h-darwin && lsan
// XFAIL: tsan
// XFAIL: android && asan
// XFAIL: ios
// XFAIL: darwin-remote

// RUN: rm -rf %t_workdir
// RUN: mkdir -p %t_workdir
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// RUN: %env_tool_opts=log_path=%t.dir/sanitizer.log:log_exe_name=1:log_suffix=.txt %run %t.dir/suffix-log-path_test-binary 2> %t.out
// RUN: FileCheck %s < %t.dir/sanitizer.log.suffix-log-path_test-binary.*.txt

// UNSUPPORTED: ios, android
// UNSUPPORTED: darwin-remote, android

#include <stdlib.h>
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/test/tsan/Darwin/dlopen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// REQUIRES: osx-autointerception

// XFAIL: ios
// XFAIL: darwin-remote

// RUN: %clangxx_tsan %s -o %t.so -shared -DSHARED_LIB
// RUN: %clangxx_tsan -fno-sanitize=thread %s -o %t
Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/test/tsan/Darwin/dyld-insert-libraries.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// RUN: env DYLD_INSERT_LIBRARIES=%t.dylib %run %t 2>&1 | FileCheck %s --implicit-check-not='ThreadSanitizer'
//
// XFAIL: ios
// XFAIL: darwin-remote

#include <assert.h>
#include <pthread.h>
Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/test/tsan/Darwin/write-interpose.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// deadlock (self-lock)
// RUN: env DYLD_INSERT_LIBRARIES=%t.dylib TSAN_OPTIONS=verbosity=2:lock_during_write=disable_for_current_process %run %t 2>&1 | FileCheck %s
//
// UNSUPPORTED: ios
// UNSUPPORTED: darwin-remote

#include <stdio.h>

Expand Down