108 lines · plain
1add_custom_target(libc_sys_epoll_unittests)2 3add_libc_unittest(4 epoll_create_test5 SUITE6 libc_sys_epoll_unittests7 SRCS8 epoll_create_test.cpp9 DEPENDS10 libc.include.sys_epoll11 libc.src.errno.errno12 libc.src.sys.epoll.epoll_create13 libc.src.unistd.close14 libc.test.UnitTest.ErrnoCheckingTest15 libc.test.UnitTest.ErrnoSetterMatcher16)17 18add_libc_unittest(19 epoll_create1_test20 SUITE21 libc_sys_epoll_unittests22 SRCS23 epoll_create1_test.cpp24 DEPENDS25 libc.hdr.sys_epoll_macros26 libc.src.errno.errno27 libc.src.sys.epoll.epoll_create128 libc.src.unistd.close29 libc.test.UnitTest.ErrnoCheckingTest30 libc.test.UnitTest.ErrnoSetterMatcher31)32 33add_libc_unittest(34 epoll_ctl_test35 SUITE36 libc_sys_epoll_unittests37 SRCS38 epoll_ctl_test.cpp39 DEPENDS40 libc.hdr.sys_epoll_macros41 libc.hdr.types.struct_epoll_event42 libc.src.errno.errno43 libc.src.sys.epoll.epoll_create144 libc.src.sys.epoll.epoll_ctl45 libc.src.unistd.pipe46 libc.src.unistd.close47 libc.test.UnitTest.ErrnoCheckingTest48 libc.test.UnitTest.ErrnoSetterMatcher49)50 51add_libc_unittest(52 epoll_wait_test53 SUITE54 libc_sys_epoll_unittests55 SRCS56 epoll_wait_test.cpp57 DEPENDS58 libc.hdr.sys_epoll_macros59 libc.hdr.types.struct_epoll_event60 libc.src.errno.errno61 libc.src.sys.epoll.epoll_create162 libc.src.sys.epoll.epoll_ctl63 libc.src.sys.epoll.epoll_wait64 libc.src.unistd.pipe65 libc.src.unistd.close66 libc.test.UnitTest.ErrnoCheckingTest67 libc.test.UnitTest.ErrnoSetterMatcher68)69 70add_libc_unittest(71 epoll_pwait_test72 SUITE73 libc_sys_epoll_unittests74 SRCS75 epoll_pwait_test.cpp76 DEPENDS77 libc.hdr.sys_epoll_macros78 libc.hdr.types.struct_epoll_event79 libc.src.errno.errno80 libc.src.sys.epoll.epoll_create181 libc.src.sys.epoll.epoll_ctl82 libc.src.sys.epoll.epoll_pwait83 libc.src.unistd.pipe84 libc.src.unistd.close85 libc.test.UnitTest.ErrnoCheckingTest86 libc.test.UnitTest.ErrnoSetterMatcher87)88 89add_libc_unittest(90 epoll_pwait2_test91 SUITE92 libc_sys_epoll_unittests93 SRCS94 epoll_pwait2_test.cpp95 DEPENDS96 libc.hdr.sys_epoll_macros97 libc.hdr.types.struct_epoll_event98 libc.hdr.types.struct_timespec99 libc.src.errno.errno100 libc.src.sys.epoll.epoll_create1101 libc.src.sys.epoll.epoll_ctl102 libc.src.sys.epoll.epoll_pwait2103 libc.src.unistd.pipe104 libc.src.unistd.close105 libc.test.UnitTest.ErrnoCheckingTest106 libc.test.UnitTest.ErrnoSetterMatcher107)108