aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlntue <35648136+lntue@users.noreply.github.com>2024-07-05 18:18:10 -0400
committerGitHub <noreply@github.com>2024-07-05 18:18:10 -0400
commit045e68f97b0e3d3df7be1d45e9ea3e105fff7b2a (patch)
tree10fc29716c9563bb56668aa3a4ce98ffd3436d59
parent4a0aff199bda8abf04a59e4c0bdcedaac7d19841 (diff)
downloadllvm-045e68f97b0e3d3df7be1d45e9ea3e105fff7b2a.zip
llvm-045e68f97b0e3d3df7be1d45e9ea3e105fff7b2a.tar.gz
llvm-045e68f97b0e3d3df7be1d45e9ea3e105fff7b2a.tar.bz2
[libc] Change the test file names used in readlink_test and readlinkat_test. (#97864)
Attempting to fix the following errors from the build bots: ``` Failed to match LIBC_NAMESPACE::symlink(LINK_VAL, LINK) against Succeeds(0). Expected return value to be equal to 0 but got -1. Expected errno to be equal to "Success" but got "File exists". ```
-rw-r--r--libc/test/src/unistd/readlink_test.cpp4
-rw-r--r--libc/test/src/unistd/readlinkat_test.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/libc/test/src/unistd/readlink_test.cpp b/libc/test/src/unistd/readlink_test.cpp
index 20f3951..49ab9c2 100644
--- a/libc/test/src/unistd/readlink_test.cpp
+++ b/libc/test/src/unistd/readlink_test.cpp
@@ -18,9 +18,9 @@ namespace cpp = LIBC_NAMESPACE::cpp;
TEST(LlvmLibcReadlinkTest, CreateAndUnlink) {
using LIBC_NAMESPACE::testing::ErrnoSetterMatcher::Succeeds;
- constexpr const char *FILENAME = "readlink_test_value";
+ constexpr const char *FILENAME = "readlink_test_file";
auto LINK_VAL = libc_make_test_file_path(FILENAME);
- constexpr const char *FILENAME2 = "readlink.test.link";
+ constexpr const char *FILENAME2 = "readlink_test_file.link";
auto LINK = libc_make_test_file_path(FILENAME2);
LIBC_NAMESPACE::libc_errno = 0;
diff --git a/libc/test/src/unistd/readlinkat_test.cpp b/libc/test/src/unistd/readlinkat_test.cpp
index 39d81d9..7e1ded5 100644
--- a/libc/test/src/unistd/readlinkat_test.cpp
+++ b/libc/test/src/unistd/readlinkat_test.cpp
@@ -20,9 +20,9 @@ namespace cpp = LIBC_NAMESPACE::cpp;
TEST(LlvmLibcReadlinkatTest, CreateAndUnlink) {
using LIBC_NAMESPACE::testing::ErrnoSetterMatcher::Succeeds;
- constexpr const char *FILENAME = "readlinkat_test_value";
+ constexpr const char *FILENAME = "readlinkat_test_file";
auto LINK_VAL = libc_make_test_file_path(FILENAME);
- constexpr const char *FILENAME2 = "readlinkat.test.link";
+ constexpr const char *FILENAME2 = "readlinkat_test_file.link";
auto LINK = libc_make_test_file_path(FILENAME2);
LIBC_NAMESPACE::libc_errno = 0;