File tree Expand file tree Collapse file tree 5 files changed +12
-10
lines changed
libc/test/src/sys/mman/linux Expand file tree Collapse file tree 5 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ add_libc_unittest(
9999 libc.src.sys.mman.mincore
100100 libc.src.sys.mman.mlock
101101 libc.src.sys.mman.munlock
102+ libc.src.unistd.sysconf
102103 libc.test .UnitTest.ErrnoCheckingTest
103104 libc.test .UnitTest.ErrnoSetterMatcher
104105)
@@ -123,6 +124,7 @@ add_libc_unittest(
123124 libc.src.sys.mman.mlockall
124125 libc.src.sys.mman.munlockall
125126 libc.src.sys.resource .getrlimit
127+ libc.src.unistd.sysconf
126128 libc.src.__support.OSUtil.osutil
127129 libc.test .UnitTest.ErrnoCheckingTest
128130 libc.test .UnitTest.ErrnoSetterMatcher
@@ -144,6 +146,7 @@ add_libc_unittest(
144146 libc.src.sys.mman.mincore
145147 libc.src.sys.mman.mlock
146148 libc.src.sys.mman.munlock
149+ libc.src.unistd.sysconf
147150 libc.test .UnitTest.ErrnoCheckingTest
148151 libc.test .UnitTest.ErrnoSetterMatcher
149152)
@@ -165,6 +168,7 @@ add_libc_unittest(
165168 libc.src.sys.mman.munmap
166169 libc.src.fcntl.open
167170 libc.src.unistd.close
171+ libc.src.unistd.sysconf
168172)
169173
170174add_libc_unittest(
Original file line number Diff line number Diff line change 1212#include " src/sys/mman/mmap.h"
1313#include " src/sys/mman/munlock.h"
1414#include " src/sys/mman/munmap.h"
15+ #include " src/unistd/sysconf.h"
1516#include " test/UnitTest/ErrnoCheckingTest.h"
1617#include " test/UnitTest/ErrnoSetterMatcher.h"
1718#include " test/UnitTest/Test.h"
1819
19- #include < unistd.h>
20-
2120using LIBC_NAMESPACE::testing::ErrnoSetterMatcher::Fails;
2221using LIBC_NAMESPACE::testing::ErrnoSetterMatcher::Succeeds;
2322using LlvmLibcMincoreTest = LIBC_NAMESPACE::testing::ErrnoCheckingTest;
2423
25- const size_t PAGE_SIZE = sysconf(_SC_PAGESIZE);
24+ const size_t PAGE_SIZE = LIBC_NAMESPACE:: sysconf(_SC_PAGESIZE);
2625
2726TEST_F (LlvmLibcMincoreTest, UnMappedMemory) {
2827 unsigned char vec;
Original file line number Diff line number Diff line change 2222#include " src/sys/mman/munlockall.h"
2323#include " src/sys/mman/munmap.h"
2424#include " src/sys/resource/getrlimit.h"
25+ #include " src/unistd/sysconf.h"
2526#include " test/UnitTest/ErrnoCheckingTest.h"
2627#include " test/UnitTest/ErrnoSetterMatcher.h"
2728#include " test/UnitTest/Test.h"
2829
2930#include < sys/syscall.h>
30- #include < unistd.h>
3131
32- const size_t PAGE_SIZE = sysconf(_SC_PAGESIZE);
32+ const size_t PAGE_SIZE = LIBC_NAMESPACE:: sysconf(_SC_PAGESIZE);
3333
3434using namespace LIBC_NAMESPACE ::testing::ErrnoSetterMatcher;
3535using LlvmLibcMlockTest = LIBC_NAMESPACE::testing::ErrnoCheckingTest;
Original file line number Diff line number Diff line change 1111#include " src/sys/mman/msync.h"
1212#include " src/sys/mman/munlock.h"
1313#include " src/sys/mman/munmap.h"
14+ #include " src/unistd/sysconf.h"
1415#include " test/UnitTest/ErrnoCheckingTest.h"
1516#include " test/UnitTest/ErrnoSetterMatcher.h"
1617#include " test/UnitTest/Test.h"
1718
18- #include < unistd.h>
19-
20- const size_t PAGE_SIZE = sysconf(_SC_PAGESIZE);
19+ const size_t PAGE_SIZE = LIBC_NAMESPACE::sysconf(_SC_PAGESIZE);
2120
2221using namespace LIBC_NAMESPACE ::testing::ErrnoSetterMatcher;
2322using LlvmLibcMsyncTest = LIBC_NAMESPACE::testing::ErrnoCheckingTest;
Original file line number Diff line number Diff line change 1111#include " src/sys/mman/munmap.h"
1212#include " src/sys/mman/remap_file_pages.h"
1313#include " src/unistd/close.h"
14+ #include " src/unistd/sysconf.h"
1415#include " test/UnitTest/ErrnoCheckingTest.h"
1516#include " test/UnitTest/ErrnoSetterMatcher.h"
1617#include " test/UnitTest/Test.h"
1718
1819#include < sys/mman.h>
1920#include < sys/stat.h> // For S_IRWXU
20- #include < unistd.h>
2121
22- const size_t PAGE_SIZE = sysconf(_SC_PAGESIZE);
22+ const size_t PAGE_SIZE = LIBC_NAMESPACE:: sysconf(_SC_PAGESIZE);
2323
2424using LIBC_NAMESPACE::testing::ErrnoSetterMatcher::Fails;
2525using LIBC_NAMESPACE::testing::ErrnoSetterMatcher::Succeeds;
You can’t perform that action at this time.
0 commit comments