Enable `asan/TestCases/Posix/start-deactivated.cc` test for iOS.
authorDan Liew <dan@su-root.co.uk>
Thu, 21 Mar 2019 19:20:44 +0000 (19:20 +0000)
committerDan Liew <dan@su-root.co.uk>
Thu, 21 Mar 2019 19:20:44 +0000 (19:20 +0000)
Summary:
To make this test pass it was necesary to change `iossim_run.py` to
propagate the `ASAN_ACTIVATION_OPTIONS` environment variable into the
testing environment.

rdar://problem/49114807

Reviewers: kubamracek, yln, serge-sans-paille

Subscribers: #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D59660

llvm-svn: 356701

compiler-rt/test/asan/TestCases/Posix/start-deactivated.cc
compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py

index 736d7f698b17bc1dbef86eb69a7d8479594f67f6..9c674ac57e46abcad60a6956d821203d9f479a38 100644 (file)
@@ -18,7 +18,6 @@
 // RUN: %env_asan_opts=start_deactivated=1 \
 // RUN:   ASAN_ACTIVATION_OPTIONS=help=1,handle_segv=0,verbosity=1 not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-UNSUPPORTED
 
-// UNSUPPORTED: ios
 
 // END.
 
index e1f633e87463def9691b20adff45a5318be5f8b9..7ce973956f3b44ca3a692471a6bc8b5d5376f7be 100755 (executable)
@@ -8,7 +8,7 @@ if not "SANITIZER_IOSSIM_TEST_DEVICE_IDENTIFIER" in os.environ:
 
 device_id = os.environ["SANITIZER_IOSSIM_TEST_DEVICE_IDENTIFIER"]
 
-for e in ["ASAN_OPTIONS", "TSAN_OPTIONS", "UBSAN_OPTIONS", "APPLE_ASAN_INIT_FOR_DLOPEN"]:
+for e in ["ASAN_OPTIONS", "TSAN_OPTIONS", "UBSAN_OPTIONS", "APPLE_ASAN_INIT_FOR_DLOPEN", "ASAN_ACTIVATION_OPTIONS"]:
   if e in os.environ:
     os.environ["SIMCTL_CHILD_" + e] = os.environ[e]