-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[libc][test] Adjust header paths in tests #119623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Since `index_test.cpp` and `rindex_test.cpp` now reside in /strings, adjust some header paths accordingly.
@llvm/pr-subscribers-libc Author: Caslyn Tonelli (Caslyn) ChangesSince Full diff: https://github.com/llvm/llvm-project/pull/119623.diff 2 Files Affected:
diff --git a/libc/test/src/strings/index_test.cpp b/libc/test/src/strings/index_test.cpp
index 88953205009d76..fc4cd2b31c55d1 100644
--- a/libc/test/src/strings/index_test.cpp
+++ b/libc/test/src/strings/index_test.cpp
@@ -6,9 +6,9 @@
//
//===----------------------------------------------------------------------===//
-#include "StrchrTest.h"
+#include "test/src/string/StrchrTest.h"
-#include "src/string/index.h"
+#include "src/strings/index.h"
#include "test/UnitTest/Test.h"
STRCHR_TEST(Index, LIBC_NAMESPACE::index)
diff --git a/libc/test/src/strings/rindex_test.cpp b/libc/test/src/strings/rindex_test.cpp
index 10513919cffa2d..d3b756fe5f6e52 100644
--- a/libc/test/src/strings/rindex_test.cpp
+++ b/libc/test/src/strings/rindex_test.cpp
@@ -6,9 +6,9 @@
//
//===----------------------------------------------------------------------===//
-#include "StrchrTest.h"
+#include "test/src/string/StrchrTest.h"
-#include "src/string/rindex.h"
+#include "src/strings/rindex.h"
#include "test/UnitTest/Test.h"
STRRCHR_TEST(Rindex, LIBC_NAMESPACE::rindex)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix!
Did you happen to spot this via a build breakage, per chance? I don't have any build breakages on my end, but that's making me think I should go investigate why that would be.
|
Do you mind folding this diff into your patch? diff --git a/libc/test/src/strings/CMakeLists.txt b/libc/test/src/strings/CMakeLists.txt
index 963a1d6d6d60..10f96b8531f6 100644
--- a/libc/test/src/strings/CMakeLists.txt
+++ b/libc/test/src/strings/CMakeLists.txt
@@ -20,7 +20,7 @@ add_libc_test(
index_test.cpp
DEPENDS
libc.src.strings.index
- libc.test.src.strchr_test_support
+ libc.test.src.string.strchr_test_support
)
add_libc_test(
@@ -31,7 +31,7 @@ add_libc_test(
rindex_test.cpp
DEPENDS
libc.src.strings.rindex
- libc.test.src.strchr_test_support
+ libc.test.src.string.strchr_test_support
)
add_libc_test(
otherwise I'll send a new PR for it. I messed that up in #118899. |
Only actually spotted this while adjusting our build targets down stream in Fuchsia to match the /string -> /strings move. |
This removes the exec script and old location targets for files that were moved to /strings. This is blocked on the merging of llvm/llvm-project#119623 into Fuchsia. Fixed: 383347626 Change-Id: Ia8de544a2695125f888544071b08f37906fe381d Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1172249 Reviewed-by: David Fang <[email protected]> Fuchsia-Auto-Submit: Caslyn Tonelli <[email protected]> Commit-Queue: Auto-Submit <[email protected]> Reviewed-by: Roland McGrath <[email protected]>
This removes the exec script and old location targets for files that were moved to /strings. This is blocked on the merging of llvm/llvm-project#119623 into Fuchsia. Original-Fixed: 383347626 Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1172249 Original-Revision: 7447daf875ce2e8677cf86ce31f879c71806b76f GitOrigin-RevId: 986d20c7fc3df983144976fc7839c42a2642841c Change-Id: I28171b62ff1a16f68c4a36c90c7de8e3c25ce082
Since
index_test.cpp
andrindex_test.cpp
now reside in /strings, adjust some header paths accordingly.Link: #118899