[PATCH] D26927: [asan] Specialize the initialization-bug.cc testcase for Darwin (it needs a deployment target of 10.11+)
Kuba Brecka via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 21 13:26:13 PST 2016
kubabrecka removed rL LLVM as the repository for this revision.
kubabrecka updated this revision to Diff 78769.
kubabrecka added a comment.
Okay, sounds good. Updating the patch.
https://reviews.llvm.org/D26927
Files:
test/asan/TestCases/initialization-bug.cc
test/lit.common.cfg
Index: test/lit.common.cfg
===================================================================
--- test/lit.common.cfg
+++ test/lit.common.cfg
@@ -141,6 +141,10 @@
except:
pass
+ config.substitutions.append( ("%macos_min_target_10_11", "-mmacosx-version-min=10.11") )
+else:
+ config.substitutions.append( ("%macos_min_target_10_11", "") )
+
sancovcc_path = os.path.join(llvm_tools_dir, "sancov")
if os.path.exists(sancovcc_path):
config.available_features.add("has_sancovcc")
Index: test/asan/TestCases/initialization-bug.cc
===================================================================
--- test/asan/TestCases/initialization-bug.cc
+++ test/asan/TestCases/initialization-bug.cc
@@ -1,6 +1,6 @@
// Test to make sure basic initialization order errors are caught.
-// RUN: %clangxx_asan -O0 %s %p/Helpers/initialization-bug-extra2.cc -o %t-INIT-ORDER-EXE
+// RUN: %clangxx_asan %macos_min_target_10_11 -O0 %s %p/Helpers/initialization-bug-extra2.cc -o %t-INIT-ORDER-EXE
// RUN: %env_asan_opts=check_initialization_order=true not %run %t-INIT-ORDER-EXE 2>&1 | FileCheck %s
// Do not test with optimization -- the error may be optimized away.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26927.78769.patch
Type: text/x-patch
Size: 1171 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161121/1df26ade/attachment.bin>
More information about the llvm-commits
mailing list