endif()
get_fq_deps_list(fq_deps_list ${LIBC_UNITTEST_DEPENDS})
+ list(APPEND fq_deps_list libc.src.__support.StringUtil.error_to_string
+ libc.test.UnitTest.ErrnoSetterMatcher)
+ list(REMOVE_DUPLICATES fq_deps_list)
get_object_files_for_test(
link_object_files skipped_entrypoints_list ${fq_deps_list})
if(skipped_entrypoints_list)
libc.src.string.memcpy
libc.src.string.memmove
libc.src.string.memset
+ libc.src.__support.StringUtil.error_to_string
)
list(REMOVE_DUPLICATES fq_deps_list)
$<$<NOT:$<BOOL:${LIBC_GPU_TARGET_ARCHITECTURE_IS_NVPTX}>>:${fq_target_name}.__libc__>)
add_dependencies(${fq_build_target_name}
LibcTest.hermetic
+ libc.test.UnitTest.ErrnoSetterMatcher
${fq_deps_list})
# Tests on the GPU require an external loader utility to launch the kernel.
#define EPIPE 32
#define EDOM 33
#define ERANGE 34
+#define EILSEQ 35
#endif // __LLVM_LIBC_MACROS_GENERIC_ERROR_NUMBER_MACROS_H
HDRS
ErrnoSetterMatcher.h
DEPENDS
+ libc.src.__support.common
+ libc.src.__support.FPUtil.fp_bits
+ libc.src.__support.StringUtil.error_to_string
libc.src.errno.errno
)
libc.src.stdio.scanf_core.core_structs
libc.test.UnitTest.string_utils
)
+
+add_header_library(
+ ErrnoSetterMatcher
+ HDRS
+ ErrnoSetterMatcher
+)
#ifndef LLVM_LIBC_TEST_ERRNOSETTERMATCHER_H
#define LLVM_LIBC_TEST_ERRNOSETTERMATCHER_H
+#include "src/__support/FPUtil/FPBits.h"
+#include "src/__support/StringUtil/error_to_string.h"
+#include "src/__support/macros/properties/architectures.h"
#include "src/errno/libc_errno.h"
#include "test/UnitTest/Test.h"
-#include <string.h>
-
namespace __llvm_libc {
namespace testing {
int ExpectedErrno;
int ActualErrno;
+ // Even though this is a errno matcher primarily, it has to cater to platforms
+ // which do not have an errno. This predicate checks if errno matching is to
+ // be skipped.
+ static constexpr bool ignore_errno() {
+#ifdef LIBC_TARGET_ARCH_IS_GPU
+ return true;
+#else
+ return false;
+#endif
+ }
+
public:
ErrnoSetterMatcher(T ExpectedReturn, int ExpectedErrno)
: ExpectedReturn(ExpectedReturn), ExpectedErrno(ExpectedErrno) {}
void explainError() override {
- if (ActualReturn != ExpectedReturn)
- __llvm_libc::testing::tlog
- << "Expected return to be " << ExpectedReturn << " but got "
- << ActualReturn << ".\nExpecte errno to be "
- << strerror(ExpectedErrno) << " but got " << strerror(ActualErrno)
- << ".\n";
- else
- __llvm_libc::testing::tlog
- << "Correct value " << ExpectedReturn
- << " was returned\nBut errno was unexpectely set to "
- << strerror(ActualErrno) << ".\n";
+ if (ActualReturn != ExpectedReturn) {
+ if constexpr (cpp::is_floating_point_v<T>) {
+ __llvm_libc::testing::tlog
+ << "Expected return value to be: "
+ << __llvm_libc::fputil::FPBits<T>(ExpectedReturn).str() << '\n';
+ __llvm_libc::testing::tlog
+ << " But got: "
+ << __llvm_libc::fputil::FPBits<T>(ActualReturn).str() << '\n';
+ } else {
+ __llvm_libc::testing::tlog << "Expected return value to be "
+ << ExpectedReturn << " but got "
+ << ActualReturn << ".\n";
+ }
+ }
+
+ if constexpr (!ignore_errno()) {
+ if (ActualErrno != ExpectedErrno) {
+ __llvm_libc::testing::tlog
+ << "Expected errno to be \"" << get_error_string(ExpectedErrno)
+ << "\" but got \"" << get_error_string(ActualErrno) << "\".\n";
+ }
+ }
}
bool match(T Got) {
ActualReturn = Got;
ActualErrno = libc_errno;
libc_errno = 0;
- return Got == ExpectedReturn && ActualErrno == ExpectedErrno;
+ if constexpr (ignore_errno())
+ return Got == ExpectedReturn;
+ else
+ return Got == ExpectedReturn && ActualErrno == ExpectedErrno;
}
};
#include "src/fcntl/creat.h"
#include "src/fcntl/open.h"
#include "src/unistd/close.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
TEST(LlvmLibcCreatTest, CreatAndOpen) {
#include "src/fcntl/openat.h"
#include "src/unistd/close.h"
#include "src/unistd/read.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <fcntl.h>
#include "src/errno/libc_errno.h"
#include "src/sched/sched_getaffinity.h"
#include "src/sched/sched_setaffinity.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include <sched.h>
#include <sys/syscall.h>
#include "src/errno/libc_errno.h"
#include "src/sched/sched_getaffinity.h"
#include "src/sched/sched_getcpucount.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include <sched.h>
#include <sys/syscall.h>
#include "include/sys/syscall.h" // For syscall numbers.
#include "src/__support/OSUtil/syscall.h" // For internal syscall function.
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <signal.h>
#include "src/signal/raise.h"
#include "src/signal/sigaction.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <errno.h>
#include "include/signal.h"
#include "src/signal/sigaddset.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <errno.h>
#include "src/signal/sigaction.h"
#include "src/signal/sigaltstack.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <signal.h>
#include "src/signal/sigfillset.h"
#include "src/signal/sigprocmask.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <errno.h>
#include "src/signal/sigfillset.h"
#include "src/signal/sigprocmask.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <errno.h>
#include "src/signal/raise.h"
#include "src/signal/signal.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
using __llvm_libc::testing::ErrnoSetterMatcher::Fails;
#include "src/signal/sigemptyset.h"
#include "src/signal/sigprocmask.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
class LlvmLibcSignalTest : public __llvm_libc::testing::Test {
#include "src/sys/stat/mkdirat.h"
#include "src/unistd/access.h"
#include "src/unistd/close.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include "src/errno/libc_errno.h"
DEPENDS
libc.src.errno.errno
libc.src.stdlib.atof
+ libc.test.errno_setter_matcher
)
add_header_library(
#include "src/errno/libc_errno.h"
#include "src/stdlib/atof.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <limits.h>
#include <stddef.h>
+using __llvm_libc::testing::ErrnoSetterMatcher::Succeeds;
+
// This is just a simple test to make sure that this function works at all. It's
// functionally identical to strtod so the bulk of the testing is there.
TEST(LlvmLibcAToFTest, SimpleTest) {
__llvm_libc::fputil::FPBits<double>(uint64_t(0x405ec00000000000));
libc_errno = 0;
- double result = __llvm_libc::atof("123");
-
- __llvm_libc::fputil::FPBits<double> actual_fp =
- __llvm_libc::fputil::FPBits<double>(result);
-
- EXPECT_EQ(actual_fp.bits, expected_fp.bits);
- EXPECT_EQ(actual_fp.get_sign(), expected_fp.get_sign());
- EXPECT_EQ(actual_fp.get_exponent(), expected_fp.get_exponent());
- EXPECT_EQ(actual_fp.get_mantissa(), expected_fp.get_mantissa());
- EXPECT_EQ(libc_errno, 0);
+ EXPECT_THAT(__llvm_libc::atof("123"),
+ Succeeds<double>(static_cast<double>(expected_fp)));
}
TEST(LlvmLibcAToFTest, FailedParsingTest) {
- __llvm_libc::fputil::FPBits<double> expected_fp =
- __llvm_libc::fputil::FPBits<double>(uint64_t(0));
-
libc_errno = 0;
- double result = __llvm_libc::atof("???");
-
- __llvm_libc::fputil::FPBits<double> actual_fp =
- __llvm_libc::fputil::FPBits<double>(result);
-
- EXPECT_EQ(actual_fp.bits, expected_fp.bits);
- EXPECT_EQ(actual_fp.get_sign(), expected_fp.get_sign());
- EXPECT_EQ(actual_fp.get_exponent(), expected_fp.get_exponent());
- EXPECT_EQ(actual_fp.get_mantissa(), expected_fp.get_mantissa());
- EXPECT_EQ(libc_errno, 0);
+ // atof does not flag errors.
+ EXPECT_THAT(__llvm_libc::atof("???"), Succeeds<double>(0.0));
}
#include "src/errno/libc_errno.h"
#include "src/stdlib/strtod.h"
-#include "test/UnitTest/FPMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/RoundingModeUtils.h"
#include "test/UnitTest/Test.h"
using __llvm_libc::fputil::testing::ForceRoundingModeTest;
using __llvm_libc::fputil::testing::RoundingMode;
+using __llvm_libc::testing::ErrnoSetterMatcher::Fails;
+using __llvm_libc::testing::ErrnoSetterMatcher::Succeeds;
+
class LlvmLibcStrToDTest : public __llvm_libc::testing::Test,
ForceRoundingModeTest<RoundingMode::Nearest> {
public:
libc_errno = 0;
double result = __llvm_libc::strtod(inputString, &str_end);
-
+ if (expectedErrno == 0)
+ EXPECT_THAT(result, Succeeds<double>(static_cast<double>(expected_fp)));
+ else
+ EXPECT_THAT(result, Fails<double>(expectedErrno,
+ static_cast<double>(expected_fp)));
EXPECT_EQ(str_end - inputString, expectedStrLen);
- EXPECT_FP_EQ(result, static_cast<double>(expected_fp));
- EXPECT_EQ(libc_errno, expectedErrno);
}
};
#include "src/sys/mman/madvise.h"
#include "src/sys/mman/mmap.h"
#include "src/sys/mman/munmap.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <sys/mman.h>
#include "src/errno/libc_errno.h"
#include "src/sys/mman/mmap.h"
#include "src/sys/mman/munmap.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <sys/mman.h>
#include "src/sys/mman/mmap.h"
#include "src/sys/mman/mprotect.h"
#include "src/sys/mman/munmap.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <signal.h>
#include "src/sys/mman/mmap.h"
#include "src/sys/mman/munmap.h"
#include "src/sys/mman/posix_madvise.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <sys/mman.h>
#include "src/errno/libc_errno.h"
#include "src/math/fabs.h"
#include "src/sys/random/getrandom.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
TEST(LlvmLibcGetRandomTest, InvalidFlag) {
#include "src/sys/resource/setrlimit.h"
#include "src/unistd/close.h"
#include "src/unistd/unlink.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <sys/resource.h>
#include "src/sys/select/select.h"
#include "src/unistd/read.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <errno.h>
#include "src/unistd/read.h"
#include "src/unistd/unlink.h"
#include "src/unistd/write.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <fcntl.h>
#include "src/sys/stat/chmod.h"
#include "src/unistd/close.h"
#include "src/unistd/write.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <fcntl.h>
#include "src/sys/stat/fchmod.h"
#include "src/unistd/close.h"
#include "src/unistd/write.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <fcntl.h>
#include "src/sys/stat/fchmodat.h"
#include "src/unistd/close.h"
#include "src/unistd/write.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <fcntl.h>
#include "src/sys/stat/fstat.h"
#include "src/unistd/close.h"
#include "src/unistd/unlink.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <fcntl.h>
#include "src/sys/stat/lstat.h"
#include "src/unistd/close.h"
#include "src/unistd/unlink.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <fcntl.h>
#include "src/sys/stat/mkdirat.h"
#include "src/unistd/rmdir.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <fcntl.h>
#include "src/sys/stat/stat.h"
#include "src/unistd/close.h"
#include "src/unistd/unlink.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <fcntl.h>
#include "src/__support/CPP/string_view.h"
#include "src/__support/macros/properties/architectures.h"
#include "src/sys/utsname/uname.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <errno.h>
//===----------------------------------------------------------------------===//
#include "src/sys/wait/wait4.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <errno.h>
//===----------------------------------------------------------------------===//
#include "src/sys/wait/waitpid.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <errno.h>
#include "src/termios/tcgetsid.h"
#include "src/termios/tcsetattr.h"
#include "src/unistd/close.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <termios.h>
#include "src/__support/FPUtil/FPBits.h"
#include "src/time/difftime.h"
#include "src/time/time_utils.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
using __llvm_libc::testing::ErrnoSetterMatcher::Succeeds;
#include "src/time/gettimeofday.h"
#include "src/time/nanosleep.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
namespace cpp = __llvm_libc::cpp;
#include "src/errno/libc_errno.h"
#include "src/time/gmtime.h"
#include "src/time/time_utils.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include "test/src/time/TmMatcher.h"
#include "src/time/mktime.h"
#include "src/time/time_utils.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include "test/src/time/TmHelper.h"
#include "test/src/time/TmMatcher.h"
#include "src/errno/libc_errno.h"
#include "src/time/nanosleep.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
namespace cpp = __llvm_libc::cpp;
#include "src/unistd/access.h"
#include "src/unistd/close.h"
#include "src/unistd/unlink.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <unistd.h>
#include "src/fcntl/open.h"
#include "src/unistd/chdir.h"
#include "src/unistd/close.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <fcntl.h>
#include "src/unistd/read.h"
#include "src/unistd/unlink.h"
#include "src/unistd/write.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
TEST(LlvmLibcdupTest, ReadAndWriteViaDup) {
#include "src/unistd/read.h"
#include "src/unistd/unlink.h"
#include "src/unistd/write.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
// The tests here are exactly the same as those of dup2. We only test the
#include "src/unistd/read.h"
#include "src/unistd/unlink.h"
#include "src/unistd/write.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
TEST(LlvmLibcdupTest, ReadAndWriteViaDup) {
#include "src/fcntl/open.h"
#include "src/unistd/close.h"
#include "src/unistd/fchdir.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <fcntl.h>
#include "src/unistd/read.h"
#include "src/unistd/unlink.h"
#include "src/unistd/write.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
namespace cpp = __llvm_libc::cpp;
#include "src/fcntl/open.h"
#include "src/unistd/close.h"
#include "src/unistd/isatty.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
using __llvm_libc::testing::ErrnoSetterMatcher::Fails;
#include "src/unistd/close.h"
#include "src/unistd/link.h"
#include "src/unistd/unlink.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
TEST(LlvmLibcLinkTest, CreateAndUnlink) {
#include "src/unistd/close.h"
#include "src/unistd/linkat.h"
#include "src/unistd/unlink.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
TEST(LlvmLibcLinkatTest, CreateAndUnlink) {
#include "src/unistd/close.h"
#include "src/unistd/lseek.h"
#include "src/unistd/read.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <unistd.h>
#include "src/unistd/pwrite.h"
#include "src/unistd/unlink.h"
#include "src/unistd/write.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
TEST(LlvmLibcUniStd, PWriteAndPReadBackTest) {
#include "src/unistd/fsync.h"
#include "src/unistd/read.h"
#include "src/unistd/write.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
TEST(LlvmLibcUniStd, WriteAndReadBackTest) {
#include "src/unistd/readlink.h"
#include "src/unistd/symlink.h"
#include "src/unistd/unlink.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
namespace cpp = __llvm_libc::cpp;
#include "src/unistd/readlinkat.h"
#include "src/unistd/symlink.h"
#include "src/unistd/unlink.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <fcntl.h>
#include "src/errno/libc_errno.h"
#include "src/sys/stat/mkdir.h"
#include "src/unistd/rmdir.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <fcntl.h>
#include "src/unistd/close.h"
#include "src/unistd/symlink.h"
#include "src/unistd/unlink.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
TEST(LlvmLibcSymlinkTest, CreateAndUnlink) {
#include "src/unistd/close.h"
#include "src/unistd/symlinkat.h"
#include "src/unistd/unlink.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
TEST(LlvmLibcSymlinkatTest, CreateAndUnlink) {
#include "src/errno/libc_errno.h"
#include "src/unistd/syscall.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
#include <fcntl.h>
#include "src/unistd/truncate.h"
#include "src/unistd/unlink.h"
#include "src/unistd/write.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
namespace cpp = __llvm_libc::cpp;
#include "src/fcntl/open.h"
#include "src/unistd/close.h"
#include "src/unistd/unlink.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
TEST(LlvmLibcUnlinkTest, CreateAndUnlink) {
#include "src/fcntl/openat.h"
#include "src/unistd/close.h"
#include "src/unistd/unlinkat.h"
-#include "test/ErrnoSetterMatcher.h"
+#include "test/UnitTest/ErrnoSetterMatcher.h"
#include "test/UnitTest/Test.h"
TEST(LlvmLibcUnlinkatTest, CreateAndDeleteTest) {