77 lines · plain
1add_custom_target(libc_pthread_unittests)2 3add_libc_unittest(4 pthread_attr_test5 SUITE6 libc_pthread_unittests7 SRCS8 pthread_attr_test.cpp9 DEPENDS10 libc.include.pthread11 libc.src.pthread.pthread_attr_destroy12 libc.src.pthread.pthread_attr_init13 libc.src.pthread.pthread_attr_getdetachstate14 libc.src.pthread.pthread_attr_getguardsize15 libc.src.pthread.pthread_attr_getstacksize16 libc.src.pthread.pthread_attr_getstack17 libc.src.pthread.pthread_attr_setdetachstate18 libc.src.pthread.pthread_attr_setguardsize19 libc.src.pthread.pthread_attr_setstacksize20 libc.src.pthread.pthread_attr_setstack21 libc.hdr.errno_macros22)23 24add_libc_unittest(25 pthread_mutexattr_test26 SUITE27 libc_pthread_unittests28 SRCS29 pthread_mutexattr_test.cpp30 DEPENDS31 libc.include.pthread32 libc.src.pthread.pthread_mutexattr_destroy33 libc.src.pthread.pthread_mutexattr_init34 libc.src.pthread.pthread_mutexattr_getpshared35 libc.src.pthread.pthread_mutexattr_getrobust36 libc.src.pthread.pthread_mutexattr_gettype37 libc.src.pthread.pthread_mutexattr_setpshared38 libc.src.pthread.pthread_mutexattr_setrobust39 libc.src.pthread.pthread_mutexattr_settype40 libc.hdr.errno_macros41)42 43add_libc_unittest(44 pthread_condattr_test45 SUITE46 libc_pthread_unittests47 SRCS48 pthread_condattr_test.cpp49 DEPENDS50 libc.include.llvm-libc-macros.generic_error_number_macros51 libc.include.llvm-libc-macros.time_macros52 libc.include.pthread53 libc.src.pthread.pthread_condattr_destroy54 libc.src.pthread.pthread_condattr_getclock55 libc.src.pthread.pthread_condattr_getpshared56 libc.src.pthread.pthread_condattr_init57 libc.src.pthread.pthread_condattr_setclock58 libc.src.pthread.pthread_condattr_setpshared59)60 61add_libc_unittest(62 pthread_rwlockattr_test63 SUITE64 libc_pthread_unittests65 SRCS66 pthread_rwlockattr_test.cpp67 DEPENDS68 libc.include.pthread69 libc.src.errno.errno70 libc.src.pthread.pthread_rwlockattr_destroy71 libc.src.pthread.pthread_rwlockattr_getkind_np72 libc.src.pthread.pthread_rwlockattr_getpshared73 libc.src.pthread.pthread_rwlockattr_init74 libc.src.pthread.pthread_rwlockattr_setkind_np75 libc.src.pthread.pthread_rwlockattr_setpshared76)77