[libcxx-commits] [PATCH] D71459: [libcxx] Fix include paths in fuzzing/partial_sort.pass.cpp

Mikhail Maltsev via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Dec 13 03:22:08 PST 2019


miyuki created this revision.
miyuki added reviewers: mclow.lists, EricWF, christof.
Herald added subscribers: libcxx-commits, ldionne.
Herald added a project: libc++.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71459

Files:
  libcxx/test/libcxx/fuzzing/partial_sort.pass.cpp


Index: libcxx/test/libcxx/fuzzing/partial_sort.pass.cpp
===================================================================
--- libcxx/test/libcxx/fuzzing/partial_sort.pass.cpp
+++ 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"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71459.233763.patch
Type: text/x-patch
Size: 537 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20191213/2ad5acb0/attachment.bin>


More information about the libcxx-commits mailing list