[PATCH] D17189: [compiler-rt] Fix test failures when switching default C++ library

Jonas Hahnfeld via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 15 03:32:37 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL260883: [compiler-rt] Fix test failures when switching default C++ library (authored by Hahnfeld).

Changed prior to commit:
  http://reviews.llvm.org/D17189?vs=47772&id=47973#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D17189

Files:
  compiler-rt/trunk/test/asan/TestCases/throw_invoke_test.cc
  compiler-rt/trunk/test/tsan/lit.cfg
  compiler-rt/trunk/test/tsan/static_init6.cc

Index: compiler-rt/trunk/test/tsan/static_init6.cc
===================================================================
--- compiler-rt/trunk/test/tsan/static_init6.cc
+++ compiler-rt/trunk/test/tsan/static_init6.cc
@@ -1,4 +1,4 @@
-// RUN: %clangxx_tsan -static-libstdc++ -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx_tsan -stdlib=libstdc++ -static-libstdc++ -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
 #include <pthread.h>
 #include <stdlib.h>
 #include <stdio.h>
Index: compiler-rt/trunk/test/tsan/lit.cfg
===================================================================
--- compiler-rt/trunk/test/tsan/lit.cfg
+++ compiler-rt/trunk/test/tsan/lit.cfg
@@ -55,6 +55,7 @@
   libcxx_libdir = os.path.join(libcxx_path, "lib")
   libcxx_so = os.path.join(libcxx_libdir, "libc++.so")
   clang_tsan_cxxflags += ["-std=c++11",
+                          "-nostdinc++",
                           "-I%s" % libcxx_incdir,
                           libcxx_so,
                           "-Wl,-rpath=%s" % libcxx_libdir]
Index: compiler-rt/trunk/test/asan/TestCases/throw_invoke_test.cc
===================================================================
--- compiler-rt/trunk/test/asan/TestCases/throw_invoke_test.cc
+++ compiler-rt/trunk/test/asan/TestCases/throw_invoke_test.cc
@@ -1,5 +1,5 @@
 // RUN: %clangxx_asan %s -o %t && %run %t
-// RUN: %clangxx_asan %s -o %t -static-libstdc++ && %run %t
+// RUN: %clangxx_asan %s -o %t -stdlib=libstdc++ -static-libstdc++ && %run %t
 
 // Clang doesn't support exceptions on Windows yet.
 // XFAIL: win32


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17189.47973.patch
Type: text/x-patch
Size: 1562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160215/7b7d7c77/attachment.bin>


More information about the llvm-commits mailing list