summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Maltsev <mikhail.maltsev@arm.com>2019-12-17 11:45:22 +0000
committerMikhail Maltsev <mikhail.maltsev@arm.com>2019-12-17 11:48:19 +0000
commit67ce7f51a50f5fb4633fcdc0e80038d1f63a40f3 (patch)
treefb5610ae8c11f4a879f8bac75da7aee33cc88e35
parente332a09619359471969abfac7ff08b36d29dbf31 (diff)
downloadbcm5719-llvm-67ce7f51a50f5fb4633fcdc0e80038d1f63a40f3.tar.gz
bcm5719-llvm-67ce7f51a50f5fb4633fcdc0e80038d1f63a40f3.zip
[libcxx] Fix include paths in fuzzing/partial_sort.pass.cpp
Summary: When testing an installed (out-of-tree) version of libc++, the "libcxx/fuzzing/partial_sort.pass.cpp" test fails because of missing include files "../fuzzing/fuzzing.{h,cpp}". This happens because in the source tree "../fuzzing" can be accessed as "libcxx/include/../fuzzing", but with the installed library this does not work. This patch fixes the issue by changing the path to be relative from the `libcxx/test/fuzzing" directory. Reviewers: mclow.lists, EricWF, christof, michaelplatings Reviewed By: michaelplatings Subscribers: merge_guards_bot, ldionne, libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D71459
-rw-r--r--libcxx/test/libcxx/fuzzing/partial_sort.pass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/libcxx/fuzzing/partial_sort.pass.cpp b/libcxx/test/libcxx/fuzzing/partial_sort.pass.cpp
index 30439ed9061..2212666c72d 100644
--- a/libcxx/test/libcxx/fuzzing/partial_sort.pass.cpp
+++ b/libcxx/test/libcxx/fuzzing/partial_sort.pass.cpp
@@ -12,8 +12,8 @@
#include <cassert>
#include <cstring> // for strlen
-#include "../fuzzing/fuzzing.h"
-#include "../fuzzing/fuzzing.cpp"
+#include "../../../fuzzing/fuzzing.h"
+#include "../../../fuzzing/fuzzing.cpp"
const char* test_cases[] = {"", "s", "bac",
"bacasf"
OpenPOWER on IntegriCloud