[libc-commits] [libc] 36c7d14 - [libc][test] Adjust header paths in tests (#119623)
via libc-commits
libc-commits at lists.llvm.org
Wed Dec 11 15:02:50 PST 2024
Author: Caslyn Tonelli
Date: 2024-12-11T15:02:47-08:00
New Revision: 36c7d147fcd01492cf9491cb0cddd3702b8fd31c
URL: https://github.com/llvm/llvm-project/commit/36c7d147fcd01492cf9491cb0cddd3702b8fd31c
DIFF: https://github.com/llvm/llvm-project/commit/36c7d147fcd01492cf9491cb0cddd3702b8fd31c.diff
LOG: [libc][test] Adjust header paths in tests (#119623)
Since `index_test.cpp` and `rindex_test.cpp` now reside in /strings,
adjust some header paths accordingly.
Link: #118899
Added:
Modified:
libc/test/src/strings/CMakeLists.txt
libc/test/src/strings/index_test.cpp
libc/test/src/strings/rindex_test.cpp
Removed:
################################################################################
diff --git a/libc/test/src/strings/CMakeLists.txt b/libc/test/src/strings/CMakeLists.txt
index 963a1d6d6d60c0..10f96b8531f68f 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(
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)
More information about the libc-commits
mailing list