[libcxx-commits] [libcxx] 67ce7f5 - [libcxx] Fix include paths in fuzzing/partial_sort.pass.cpp
Mikhail Maltsev via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Dec 17 03:48:28 PST 2019
Author: Mikhail Maltsev
Date: 2019-12-17T11:48:19Z
New Revision: 67ce7f51a50f5fb4633fcdc0e80038d1f63a40f3
URL: https://github.com/llvm/llvm-project/commit/67ce7f51a50f5fb4633fcdc0e80038d1f63a40f3
DIFF: https://github.com/llvm/llvm-project/commit/67ce7f51a50f5fb4633fcdc0e80038d1f63a40f3.diff
LOG: [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
Added:
Modified:
libcxx/test/libcxx/fuzzing/partial_sort.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/libcxx/fuzzing/partial_sort.pass.cpp b/libcxx/test/libcxx/fuzzing/partial_sort.pass.cpp
index 30439ed90619..2212666c72d8 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"
More information about the libcxx-commits
mailing list