diff options
author | Xing Xue <xingxue@outlook.com> | 2019-05-14 13:54:33 +0000 |
---|---|---|
committer | Xing Xue <xingxue@outlook.com> | 2019-05-14 13:54:33 +0000 |
commit | fe4f6d53c6e8a26d88a1d21a9e7af90963bdeaf0 (patch) | |
tree | a430cb74ce676d13fb0bb985f957ce86583ad358 /llvm/test/tools/llvm-isel-fuzzer | |
parent | 37b7922daa924d7e50aa95ea01fa2d90ef310975 (diff) | |
download | bcm5719-llvm-fe4f6d53c6e8a26d88a1d21a9e7af90963bdeaf0.tar.gz bcm5719-llvm-fe4f6d53c6e8a26d88a1d21a9e7af90963bdeaf0.zip |
[lit][tests]Add feature libcxx-used and use it in llvm-*-fuzzer tests
When a LLVM binary such as llvm-*-fuzzer is built with libc++, it has dependency on libc++. The path to find shared libraries specified in llvm-*-fuzzer is relative. As a result, these binaries cannot be copied to an arbitrary directory and launched from there. Changes in this patch add a LIT feature to indicate that libc++ is used to build and, based on the feature exclude test cases that test by copying llvm-*-fuzzer binaries to a directory.
Reviewers: hubert.reinterpretcast, dberris, amyk, jasonliu, EricWF
Reviewed By: hubert.reinterpretcast, amyk
Subscribers: javed.absar, jsji, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D61265
llvm-svn: 360672
Diffstat (limited to 'llvm/test/tools/llvm-isel-fuzzer')
-rw-r--r-- | llvm/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll | 3 | ||||
-rw-r--r-- | llvm/test/tools/llvm-isel-fuzzer/execname-options.ll | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll b/llvm/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll index 339d7b6b8e7..2cab8c74799 100644 --- a/llvm/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll +++ b/llvm/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 diff --git a/llvm/test/tools/llvm-isel-fuzzer/execname-options.ll b/llvm/test/tools/llvm-isel-fuzzer/execname-options.ll index a825cb450cc..dfce73ed2e2 100644 --- a/llvm/test/tools/llvm-isel-fuzzer/execname-options.ll +++ b/llvm/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 |