Skip to content

Commit

Permalink
[libcxx] Fix include paths in fuzzing/partial_sort.pass.cpp
Browse files Browse the repository at this point in the history
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
  • Loading branch information
miyuki committed Dec 17, 2019
1 parent e332a09 commit 67ce7f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcxx/test/libcxx/fuzzing/partial_sort.pass.cpp
Expand Up @@ -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"
Expand Down

0 comments on commit 67ce7f5

Please sign in to comment.