[libc-commits] [libc] ef3e80b - [libc][Obvious] Use unique test file names in dup, dup2 and dup3 tests.
Siva Chandra Reddy via libc-commits
libc-commits at lists.llvm.org
Tue Sep 13 11:20:44 PDT 2022
Author: Siva Chandra Reddy
Date: 2022-09-13T18:20:04Z
New Revision: ef3e80b6bd4494b230c55b0d095324a8f09c0c32
URL: https://github.com/llvm/llvm-project/commit/ef3e80b6bd4494b230c55b0d095324a8f09c0c32
DIFF: https://github.com/llvm/llvm-project/commit/ef3e80b6bd4494b230c55b0d095324a8f09c0c32.diff
LOG: [libc][Obvious] Use unique test file names in dup, dup2 and dup3 tests.
Added:
Modified:
libc/test/src/unistd/dup2_test.cpp
libc/test/src/unistd/dup3_test.cpp
Removed:
################################################################################
diff --git a/libc/test/src/unistd/dup2_test.cpp b/libc/test/src/unistd/dup2_test.cpp
index 836c9abdc822b..e08972f2be0bd 100644
--- a/libc/test/src/unistd/dup2_test.cpp
+++ b/libc/test/src/unistd/dup2_test.cpp
@@ -22,7 +22,7 @@ TEST(LlvmLibcdupTest, ReadAndWriteViaDup) {
constexpr int DUPFD = 0xD0;
errno = 0;
using __llvm_libc::testing::ErrnoSetterMatcher::Succeeds;
- constexpr const char *TEST_FILE = "testdata/dup.test";
+ constexpr const char *TEST_FILE = "testdata/dup2.test";
int fd = __llvm_libc::open(TEST_FILE, O_WRONLY | O_CREAT, S_IRWXU);
ASSERT_EQ(errno, 0);
ASSERT_GT(fd, 0);
diff --git a/libc/test/src/unistd/dup3_test.cpp b/libc/test/src/unistd/dup3_test.cpp
index e43b5ff43f095..36ca66b9c0afe 100644
--- a/libc/test/src/unistd/dup3_test.cpp
+++ b/libc/test/src/unistd/dup3_test.cpp
@@ -28,7 +28,7 @@ TEST(LlvmLibcdupTest, ReadAndWriteViaDup) {
errno = 0;
using __llvm_libc::testing::ErrnoSetterMatcher::Fails;
using __llvm_libc::testing::ErrnoSetterMatcher::Succeeds;
- constexpr const char *TEST_FILE = "testdata/dup.test";
+ constexpr const char *TEST_FILE = "testdata/dup3.test";
int fd = __llvm_libc::open(TEST_FILE, O_WRONLY | O_CREAT, S_IRWXU);
ASSERT_EQ(errno, 0);
ASSERT_GT(fd, 0);
More information about the libc-commits
mailing list