From ef3e80b6bd4494b230c55b0d095324a8f09c0c32 Mon Sep 17 00:00:00 2001 From: Siva Chandra Reddy Date: Tue, 13 Sep 2022 18:16:04 +0000 Subject: [PATCH] [libc][Obvious] Use unique test file names in dup, dup2 and dup3 tests. --- libc/test/src/unistd/dup2_test.cpp | 2 +- libc/test/src/unistd/dup3_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/test/src/unistd/dup2_test.cpp b/libc/test/src/unistd/dup2_test.cpp index 836c9ab..e08972f 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 e43b5ff..36ca66b 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); -- 2.7.4