[PATCH] D61265: [lit][tests]Add feature libcxx-used and use it in llvm-*-fuzzer tests
Xing Xue via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 14 06:52:39 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL360672: [lit][tests]Add feature libcxx-used and use it in llvm-*-fuzzer tests (authored by xingxue, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D61265?vs=197116&id=199432#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61265/new/
https://reviews.llvm.org/D61265
Files:
llvm/trunk/test/lit.cfg.py
llvm/trunk/test/lit.site.cfg.py.in
llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll
llvm/trunk/test/tools/llvm-isel-fuzzer/execname-options.ll
llvm/trunk/test/tools/llvm-opt-fuzzer/exec-options.ll
Index: llvm/trunk/test/lit.site.cfg.py.in
===================================================================
--- llvm/trunk/test/lit.site.cfg.py.in
+++ llvm/trunk/test/lit.site.cfg.py.in
@@ -44,6 +44,7 @@
config.llvm_host_triple = '@LLVM_HOST_TRIPLE@'
config.host_arch = "@HOST_ARCH@"
config.have_opt_viewer_modules = @LLVM_HAVE_OPT_VIEWER_MODULES@
+config.libcxx_used = @LLVM_LIBCXX_USED@
# Support substitution of the tools_dir with user parameters. This is
# used when we can't determine the tool dir at configuration time.
Index: llvm/trunk/test/lit.cfg.py
===================================================================
--- llvm/trunk/test/lit.cfg.py
+++ llvm/trunk/test/lit.cfg.py
@@ -228,6 +228,9 @@
if have_cxx_shared_library():
config.available_features.add('cxx-shared-library')
+if config.libcxx_used:
+ config.available_features.add('libcxx-used')
+
# Direct object generation
if not 'hexagon' in config.target_triple:
config.available_features.add('object-emission')
Index: llvm/trunk/test/tools/llvm-opt-fuzzer/exec-options.ll
===================================================================
--- llvm/trunk/test/tools/llvm-opt-fuzzer/exec-options.ll
+++ llvm/trunk/test/tools/llvm-opt-fuzzer/exec-options.ll
@@ -3,6 +3,9 @@
; REQUIRES: static-libs
; REQUIRES: x86-registered-target
+; The above also applies if the binary is built with libc++.
+; UNSUPPORTED: libcxx-used
+
; This test is really flaky on Windows. On Windows, executables and DLLs cannot
; be deleted or written while they are loaded. The OS unlocks the file some
; time after the process terminates, so if 'rm' runs too quickly, it will fail
Index: llvm/trunk/test/tools/llvm-isel-fuzzer/execname-options.ll
===================================================================
--- llvm/trunk/test/tools/llvm-isel-fuzzer/execname-options.ll
+++ llvm/trunk/test/tools/llvm-isel-fuzzer/execname-options.ll
@@ -2,6 +2,9 @@
; without copying the whole lib dir or polluting the build dir.
; REQUIRES: static-libs
+; The above also applies if the binary is built with libc++.
+; UNSUPPORTED: libcxx-used
+
; RUN: echo > %t.input
; RUN: cp llvm-isel-fuzzer %t.bin--gisel
Index: llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll
===================================================================
--- llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll
+++ llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll
@@ -3,6 +3,9 @@
; REQUIRES: static-libs
; REQUIRES: aarch64-registered-target
+; The above also applies if the binary is built with libc++.
+; UNSUPPORTED: libcxx-used
+
; RUN: echo > %t.input
; RUN: cp llvm-isel-fuzzer %t.bin--aarch64
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61265.199432.patch
Type: text/x-patch
Size: 2719 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190514/51d95718/attachment.bin>
More information about the llvm-commits
mailing list