[PATCH] D26927: [asan] Specialize the initialization-bug.cc testcase for Darwin (it needs a deployment target of 10.11+)

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 21 13:58:26 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL287581: [asan] Specialize the initialization-bug.cc testcase for Darwin (it needs a… (authored by kuba.brecka).

Changed prior to commit:
  https://reviews.llvm.org/D26927?vs=78769&id=78776#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D26927

Files:
  compiler-rt/trunk/test/asan/TestCases/initialization-bug.cc
  compiler-rt/trunk/test/lit.common.cfg


Index: compiler-rt/trunk/test/asan/TestCases/initialization-bug.cc
===================================================================
--- compiler-rt/trunk/test/asan/TestCases/initialization-bug.cc
+++ compiler-rt/trunk/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.
Index: compiler-rt/trunk/test/lit.common.cfg
===================================================================
--- compiler-rt/trunk/test/lit.common.cfg
+++ compiler-rt/trunk/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")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26927.78776.patch
Type: text/x-patch
Size: 1279 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161121/733dfb2b/attachment.bin>


More information about the llvm-commits mailing list