10 changes: 5 additions & 5 deletions libc/src/threads/linux/thrd_create.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
//===----------------------------------------------------------------------===//

#include "src/threads/thrd_create.h"
#include "config/linux/syscall.h" // For syscall function.
#include "include/errno.h" // For E* error values.
#include "include/sys/mman.h" // For PROT_* and MAP_* definitions.
#include "include/sys/syscall.h" // For syscall numbers.
#include "include/threads.h" // For thrd_* type definitions.
#include "include/errno.h" // For E* error values.
#include "include/sys/mman.h" // For PROT_* and MAP_* definitions.
#include "include/sys/syscall.h" // For syscall numbers.
#include "include/threads.h" // For thrd_* type definitions.
#include "src/__support/OSUtil/syscall.h" // For syscall function.
#include "src/__support/common.h"
#include "src/errno/llvmlibc_errno.h"
#include "src/sys/mman/mmap.h"
Expand Down
6 changes: 3 additions & 3 deletions libc/src/threads/linux/thrd_join.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
//===----------------------------------------------------------------------===//

#include "src/threads/thrd_join.h"
#include "config/linux/syscall.h" // For syscall function.
#include "include/sys/syscall.h" // For syscall numbers.
#include "include/threads.h" // For thrd_* type definitions.
#include "include/sys/syscall.h" // For syscall numbers.
#include "include/threads.h" // For thrd_* type definitions.
#include "src/__support/OSUtil/syscall.h" // For syscall function.
#include "src/__support/common.h"
#include "src/sys/mman/munmap.h"
#include "src/threads/linux/Futex.h"
Expand Down
2 changes: 1 addition & 1 deletion libc/src/unistd/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ add_entrypoint_object(
../write.h
DEPENDS
libc.include.unistd
libc.config.linux.linux_syscall_h
libc.include.sys_syscall
libc.src.__support.OSUtil.osutil
libc.src.errno.__errno_location
)
4 changes: 2 additions & 2 deletions libc/src/unistd/linux/write.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

#include "src/unistd/write.h"

#include "config/linux/syscall.h" // For internal syscall function.
#include "include/sys/syscall.h" // For syscall numbers.
#include "include/sys/syscall.h" // For syscall numbers.
#include "src/__support/OSUtil/syscall.h" // For internal syscall function.
#include "src/__support/common.h"
#include "src/errno/llvmlibc_errno.h"

Expand Down
1 change: 0 additions & 1 deletion libc/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ if(NOT LLVM_LIBC_FULL_BUILD)
return()
endif()

add_subdirectory(config)
add_subdirectory(integration)
add_subdirectory(loader)
1 change: 0 additions & 1 deletion libc/test/config/CMakeLists.txt

This file was deleted.

5 changes: 0 additions & 5 deletions libc/test/config/linux/CMakeLists.txt

This file was deleted.

7 changes: 0 additions & 7 deletions libc/test/config/linux/x86_64/CMakeLists.txt

This file was deleted.

2 changes: 2 additions & 0 deletions libc/test/src/__support/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ add_custom_command(TARGET libc_str_to_float_comparison_test
DEPENDS ${float_test_file}
COMMENT "Test the strtof and strtod implementations against precomputed results."
VERBATIM)

add_subdirectory(OSUtil)
3 changes: 3 additions & 0 deletions libc/test/src/__support/OSUtil/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
add_libc_testsuite(libc_osutil_tests)

add_subdirectory(linux)
1 change: 1 addition & 0 deletions libc/test/src/__support/OSUtil/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add_subdirectory(x86_64)
7 changes: 7 additions & 0 deletions libc/test/src/__support/OSUtil/linux/x86_64/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
add_libc_unittest(
syscall_unittest
SUITE libc_osutil_tests
SRCS syscall_test.cpp
DEPENDS
libc.src.__support.OSUtil.osutil
)
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
//
//===----------------------------------------------------------------------===//

#include "config/linux/syscall.h"
#include "utils/UnitTest/Test.h"

#include "src/__support/CPP/Functional.h"
#include "src/__support/OSUtil/syscall.h"
#include "utils/UnitTest/Test.h"

TEST(LlvmLibcX86_64_SyscallTest, APITest) {
// We only do a signature test here. Actual functionality tests are
Expand Down