summaryrefslogtreecommitdiff
path: root/libc/test/src/pthread/CMakeLists.txt
blob: fb0d22ab9d2a57bd0c11c6082993f59c82c77ad4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
add_custom_target(libc_pthread_unittests)

add_libc_unittest(
  pthread_attr_test
  SUITE
    libc_pthread_unittests
  SRCS
    pthread_attr_test.cpp
  DEPENDS
    libc.include.errno
    libc.include.pthread
    libc.src.pthread.pthread_attr_destroy
    libc.src.pthread.pthread_attr_init
    libc.src.pthread.pthread_attr_getdetachstate
    libc.src.pthread.pthread_attr_getguardsize
    libc.src.pthread.pthread_attr_getstacksize
    libc.src.pthread.pthread_attr_getstack
    libc.src.pthread.pthread_attr_setdetachstate
    libc.src.pthread.pthread_attr_setguardsize
    libc.src.pthread.pthread_attr_setstacksize
    libc.src.pthread.pthread_attr_setstack
)

add_libc_unittest(
  pthread_mutexattr_test
  SUITE
    libc_pthread_unittests
  SRCS
    pthread_mutexattr_test.cpp
  DEPENDS
    libc.include.errno
    libc.include.pthread
    libc.src.pthread.pthread_mutexattr_destroy
    libc.src.pthread.pthread_mutexattr_init
    libc.src.pthread.pthread_mutexattr_getpshared
    libc.src.pthread.pthread_mutexattr_getrobust
    libc.src.pthread.pthread_mutexattr_gettype
    libc.src.pthread.pthread_mutexattr_setpshared
    libc.src.pthread.pthread_mutexattr_setrobust
    libc.src.pthread.pthread_mutexattr_settype
)