├── .gitignore ├── test-src ├── cond.seeds ├── cancel.seeds ├── mutex.seeds ├── yield.seeds ├── yield_single.seeds ├── mutex_timedlock.seeds ├── cond_timedwait.seeds ├── cancel.c └── yield_single.c └── posixtestsuite ├── conformance ├── interfaces │ ├── clock_getcpuclockid │ │ └── coverage.txt │ ├── sem_post │ │ ├── coverage.txt │ │ └── cln.sh │ ├── sem_getvalue │ │ ├── coverage.c │ │ └── cln.sh │ ├── pthread_attr_getstackaddr │ │ ├── assertions.xml │ │ └── coverage.txt │ ├── pthread_attr_setstackaddr │ │ ├── assertions.xml │ │ └── coverage.txt │ ├── mmap │ │ └── 13-1.c │ ├── shm_open │ │ ├── 37-1.c │ │ ├── 31-1.sh │ │ ├── 4-1.sh │ │ ├── 14-1.sh │ │ ├── 13-2.sh │ │ ├── 35-1.sh │ │ └── 30-1.sh │ ├── ctime │ │ ├── coverage.txt │ │ └── assertions.xml │ ├── time │ │ ├── coverage.txt │ │ └── assertions.xml │ ├── asctime │ │ ├── coverage.txt │ │ └── assertions.xml │ ├── mktime │ │ ├── coverage.txt │ │ └── assertions.xml │ ├── localtime │ │ ├── coverage.txt │ │ └── assertions.xml │ ├── gmtime │ │ ├── coverage.txt │ │ └── assertions.xml │ ├── difftime │ │ ├── coverage.txt │ │ ├── assertions.xml │ │ └── 2-1.sh │ ├── getpid │ │ ├── coverage.txt │ │ └── assertions.xml │ ├── sched_setparam │ │ ├── 4-1.sh │ │ ├── 24-1.sh │ │ └── 11-1.sh │ ├── sighold │ │ ├── coverage.txt │ │ ├── 3-1.sh │ │ ├── 3-3.sh │ │ ├── 3-4.sh │ │ └── 3-2.sh │ ├── pthread_self │ │ ├── coverage.txt │ │ └── assertions.xml │ ├── sigrelse │ │ ├── coverage.txt │ │ ├── 3-1.sh │ │ ├── 3-2.sh │ │ ├── 3-3.sh │ │ └── 3-4.sh │ ├── pthread_equal │ │ ├── coverage.txt │ │ └── assertions.xml │ ├── aio_error │ │ └── coverage.txt │ ├── pthread_testcancel │ │ ├── coverage.txt │ │ └── assertions.xml │ ├── sigpause │ │ └── coverage.txt │ ├── aio_return │ │ └── coverage.txt │ ├── mq_setattr │ │ └── coverage.txt │ ├── timer_delete │ │ ├── coverage.txt │ │ ├── 3-1.sh │ │ └── 4-1.sh │ ├── pthread_cleanup_pop │ │ ├── coverage.txt │ │ └── assertions.xml │ ├── pthread_cleanup_push │ │ └── coverage.txt │ ├── pthread_setcanceltype │ │ └── coverage.txt │ ├── pthread_condattr_getclock │ │ └── coverage.txt │ ├── pthread_condattr_setclock │ │ └── coverage.txt │ ├── pthread_key_delete │ │ └── coverage.txt │ ├── pthread_setcancelstate │ │ └── coverage.txt │ ├── pthread_spin_lock │ │ └── coverage.txt │ ├── pthread_attr_getdetachstate │ │ ├── coverage.txt │ │ └── assertions.xml │ ├── pthread_attr_getschedparam │ │ └── coverage.txt │ ├── pthread_condattr_setpshared │ │ └── coverage.txt │ ├── pthread_rwlock_wrlock │ │ └── coverage.txt │ ├── pthread_spin_destroy │ │ └── coverage.txt │ ├── pthread_attr_getscope │ │ ├── coverage.txt │ │ └── 2-1.sh │ ├── pthread_barrier_destroy │ │ └── coverage.txt │ ├── pthread_barrierattr_destroy │ │ └── coverage.txt │ ├── pthread_detach │ │ └── coverage.txt │ ├── pthread_getcpuclockid │ │ ├── coverage.txt │ │ └── 2-1.sh │ ├── pthread_rwlockattr_setpshared │ │ └── coverage.txt │ ├── timer_gettime │ │ ├── coverage.txt │ │ ├── 4-1.sh │ │ └── 5-1.sh │ ├── pthread_attr_getstack │ │ ├── coverage.txt │ │ ├── assertions.xml │ │ └── 2-1.sh │ ├── pthread_barrierattr_init │ │ └── coverage.txt │ ├── pthread_condattr_getpshared │ │ └── coverage.txt │ ├── pthread_getspecific │ │ └── coverage.txt │ ├── pthread_mutex_getprioceiling │ │ └── coverage.txt │ ├── pthread_mutexattr_gettype │ │ └── coverage.txt │ ├── pthread_mutexattr_setprotocol │ │ └── coverage.txt │ ├── pthread_rwlock_tryrdlock │ │ ├── coverage.txt │ │ └── 2-1.sh │ ├── pthread_rwlock_trywrlock │ │ ├── coverage.txt │ │ └── 2-1.sh │ ├── pthread_attr_getschedpolicy │ │ └── coverage.txt │ ├── pthread_mutexattr_getpshared │ │ └── coverage.txt │ ├── pthread_mutexattr_setpshared │ │ └── coverage.txt │ ├── pthread_rwlockattr_destroy │ │ ├── coverage.txt │ │ └── 3-1.sh │ ├── pthread_spin_init │ │ └── coverage.txt │ ├── sem_close │ │ ├── cln.sh │ │ └── coverage.txt │ ├── mq_getattr │ │ ├── coverage.txt │ │ └── 5-1.sh │ ├── pthread_atfork │ │ └── coverage.txt │ ├── pthread_attr_getinheritsched │ │ └── coverage.txt │ ├── pthread_attr_getstacksize │ │ ├── coverage.txt │ │ └── assertions.xml │ ├── pthread_barrierattr_setpshared │ │ └── coverage.txt │ ├── pthread_mutexattr_setprioceiling │ │ └── coverage.txt │ ├── pthread_spin_trylock │ │ ├── coverage.txt │ │ └── 3-1.sh │ ├── pthread_barrier_init │ │ └── coverage.txt │ ├── pthread_rwlock_unlock │ │ └── coverage.txt │ ├── mq_close │ │ └── coverage.txt │ ├── mq_unlink │ │ ├── coverage.txt │ │ └── 3-1.sh │ ├── pthread_getschedparam │ │ └── coverage.txt │ ├── pthread_setschedparam │ │ └── coverage.txt │ ├── pthread_spin_unlock │ │ └── coverage.txt │ ├── pthread_attr_setdetachstate │ │ └── coverage.txt │ ├── pthread_mutex_timedlock │ │ └── coverage.txt │ ├── pthread_rwlock_destroy │ │ ├── coverage.txt │ │ └── 2-1.sh │ ├── pthread_setspecific │ │ └── coverage.txt │ ├── sem_unlink │ │ ├── coverage.txt │ │ └── cln.sh │ ├── signal │ │ └── coverage.txt │ ├── mq_notify │ │ ├── coverage.txt │ │ └── 6-1.sh │ ├── pthread_barrierattr_getpshared │ │ └── coverage.txt │ ├── pthread_mutexattr_getprioceiling │ │ └── coverage.txt │ ├── sigaddset │ │ ├── coverage.txt │ │ ├── 4-1.sh │ │ ├── 4-3.sh │ │ ├── 4-4.sh │ │ ├── 4-2.sh │ │ └── boundarytests.txt │ ├── sigdelset │ │ ├── coverage.txt │ │ ├── 4-1.sh │ │ ├── 4-2.sh │ │ ├── 4-3.sh │ │ └── 4-4.sh │ ├── clock_getres │ │ ├── coverage.txt │ │ └── 4-1.sh │ ├── pthread_setschedprio │ │ └── coverage.txt │ ├── sem_wait │ │ ├── cln.sh │ │ └── coverage.txt │ ├── pthread_barrier_wait │ │ └── coverage.txt │ ├── pthread_mutex_lock │ │ └── coverage.txt │ ├── sched_getparam │ │ └── 5-1.sh │ ├── sem_destroy │ │ ├── cln.sh │ │ └── coverage.txt │ ├── sem_open │ │ └── cln.sh │ ├── mlock │ │ ├── 7-1.sh │ │ ├── 2-1.sh │ │ ├── 4-1.sh │ │ └── coverage.txt │ ├── pthread_key_create │ │ └── coverage.txt │ ├── aio_suspend │ │ └── coverage.txt │ ├── mlockall │ │ ├── 9-1.sh │ │ ├── 7-1.sh │ │ └── 2-1.sh │ ├── munlock │ │ ├── 9-1.sh │ │ ├── 2-1.sh │ │ └── coverage.txt │ ├── sigset │ │ └── coverage.txt │ ├── shm_unlink │ │ ├── 7-1.sh │ │ ├── 4-1.sh │ │ └── coverage.txt │ ├── sigtimedwait │ │ └── coverage.txt │ ├── pthread_rwlock_timedrdlock │ │ └── coverage.txt │ ├── pthread_rwlock_timedwrlock │ │ └── coverage.txt │ ├── sched_yield │ │ ├── 3-1.sh │ │ └── coverage.txt │ ├── sched_getscheduler │ │ ├── 6-1.sh │ │ └── coverage.txt │ ├── pthread_exit │ │ └── coverage.txt │ ├── pthread_mutexattr_getprotocol │ │ └── coverage.txt │ ├── sched_rr_get_interval │ │ ├── 4-1.sh │ │ └── coverage.txt │ ├── sigwaitinfo │ │ └── coverage.txt │ ├── aio_write │ │ └── coverage.txt │ ├── pthread_rwlockattr_getpshared │ │ └── coverage.txt │ ├── sched_get_priority_max │ │ ├── 3-1.sh │ │ └── coverage.txt │ ├── sched_get_priority_min │ │ ├── 3-1.sh │ │ └── coverage.txt │ ├── munlockall │ │ ├── 6-1.sh │ │ └── coverage.txt │ ├── pthread_attr_setscope │ │ ├── coverage.txt │ │ └── 3-1.sh │ ├── aio_fsync │ │ └── coverage.txt │ ├── pthread_attr_init │ │ └── coverage.txt │ ├── pthread_attr_setschedpolicy │ │ └── coverage.txt │ ├── pthread_rwlockattr_init │ │ ├── coverage.txt │ │ └── 3-1.sh │ ├── sched_setscheduler │ │ ├── 18-1.sh │ │ ├── 3-1.sh │ │ └── 8-1.sh │ ├── pthread_attr_setinheritsched │ │ └── coverage.txt │ ├── aio_read │ │ └── coverage.txt │ ├── pthread_rwlock_init │ │ ├── coverage.txt │ │ └── 4-1.sh │ ├── pthread_rwlock_rdlock │ │ └── coverage.txt │ ├── sem_timedwait │ │ └── coverage.txt │ ├── sigaltstack │ │ └── coverage.txt │ ├── pthread_mutex_init │ │ └── coverage.txt │ ├── sigemptyset │ │ └── coverage.txt │ ├── sigfillset │ │ └── coverage.txt │ ├── sigpending │ │ └── coverage.txt │ ├── mq_send │ │ └── coverage.txt │ ├── pthread_kill │ │ └── coverage.txt │ ├── munmap │ │ ├── coverage.txt │ │ └── 7-1.sh │ ├── pthread_attr_setstacksize │ │ └── coverage.txt │ ├── sigsuspend │ │ └── coverage.txt │ ├── mq_receive │ │ └── coverage.txt │ ├── pthread_cond_wait │ │ └── coverage.txt │ ├── pthread_condattr_init │ │ └── coverage.txt │ ├── sigwait │ │ └── coverage.txt │ ├── killpg │ │ └── coverage.txt │ ├── pthread_cond_signal │ │ └── coverage.txt │ ├── pthread_once │ │ ├── coverage.txt │ │ └── 4-1.c │ ├── sigqueue │ │ └── coverage.txt │ ├── pthread_cond_broadcast │ │ └── coverage.txt │ ├── pthread_mutexattr_destroy │ │ └── coverage.txt │ ├── sigismember │ │ ├── coverage.txt │ │ ├── 5-1.sh │ │ ├── 5-2.sh │ │ ├── 5-3.sh │ │ └── 5-4.sh │ ├── timer_create │ │ ├── coverage.txt │ │ └── 13-1.sh │ ├── pthread_attr_setstack │ │ ├── coverage.txt │ │ ├── 3-1.sh │ │ └── 5-1.sh │ ├── pthread_join │ │ └── coverage.txt │ ├── pthread_cond_destroy │ │ └── coverage.txt │ ├── pthread_attr_setschedparam │ │ └── coverage.txt │ ├── sigignore │ │ ├── coverage.txt │ │ ├── 5-1.sh │ │ ├── 5-2.sh │ │ ├── 5-3.sh │ │ └── 5-4.sh │ ├── pthread_mutex_destroy │ │ └── coverage.txt │ ├── pthread_cond_init │ │ └── coverage.txt │ ├── lio_listio │ │ └── coverage.txt │ ├── mq_timedreceive │ │ └── coverage.txt │ ├── pthread_condattr_destroy │ │ └── coverage.txt │ ├── pthread_mutexattr_settype │ │ └── coverage.txt │ ├── timer_getoverrun │ │ ├── coverage.txt │ │ └── 5-1.sh │ ├── pthread_attr_destroy │ │ └── coverage.txt │ ├── sigprocmask │ │ ├── 17-1.sh │ │ ├── 17-2.sh │ │ ├── 17-3.sh │ │ └── 17-4.sh │ ├── mq_open │ │ └── coverage.txt │ ├── pthread_cond_timedwait │ │ └── coverage.txt │ ├── pthread_create │ │ └── coverage.txt │ ├── raise │ │ └── coverage.txt │ ├── clock_gettime │ │ ├── coverage.txt │ │ └── 6-1.sh │ ├── timer_settime │ │ ├── 10-1.sh │ │ └── 11-1.sh │ ├── pthread_mutexattr_init │ │ └── coverage.txt │ ├── clock_settime │ │ └── 15-1.sh │ └── aio_cancel │ │ └── coverage.txt ├── definitions │ ├── signal_h │ │ ├── 5-1.c │ │ ├── 4-1.c │ │ ├── 17-1.c │ │ ├── 18-1.c │ │ ├── 3-1.c │ │ ├── 2-1.c │ │ ├── 2-2.c │ │ ├── 2-4.c │ │ ├── 1-1.c │ │ ├── 2-3.c │ │ ├── 22-30.c │ │ ├── 22-31.c │ │ ├── 22-32.c │ │ ├── 22-33.c │ │ ├── 22-34.c │ │ ├── 22-35.c │ │ ├── 22-36.c │ │ ├── 22-37.c │ │ ├── 22-38.c │ │ ├── 22-40.c │ │ ├── 22-1.c │ │ ├── 22-2.c │ │ ├── 22-3.c │ │ ├── 22-4.c │ │ ├── 22-5.c │ │ ├── 22-6.c │ │ ├── 22-7.c │ │ ├── 22-8.c │ │ ├── 22-9.c │ │ ├── 22-10.c │ │ ├── 22-11.c │ │ ├── 22-12.c │ │ ├── 22-13.c │ │ ├── 22-14.c │ │ ├── 22-15.c │ │ ├── 22-16.c │ │ ├── 22-17.c │ │ ├── 22-18.c │ │ ├── 22-19.c │ │ ├── 22-20.c │ │ ├── 22-21.c │ │ ├── 22-22.c │ │ ├── 22-23.c │ │ ├── 22-24.c │ │ ├── 22-25.c │ │ ├── 22-26.c │ │ ├── 22-27.c │ │ ├── 22-28.c │ │ ├── 22-39.c │ │ ├── 22-29.c │ │ ├── 50-1.c │ │ ├── 28-1.c │ │ ├── 44-1.c │ │ ├── 20-1.c │ │ ├── 35-1.c │ │ ├── 40-1.c │ │ ├── 34-1.c │ │ ├── 36-1.c │ │ ├── 19-1.c │ │ ├── 24-1.c │ │ ├── 30-1.c │ │ ├── 32-1.c │ │ ├── 33-1.c │ │ ├── 37-1.c │ │ ├── 25-1.c │ │ ├── 46-1.c │ │ ├── 26-1.c │ │ ├── 39-1.c │ │ ├── 41-1.c │ │ ├── 45-1.c │ │ ├── 38-1.c │ │ ├── 23-1.c │ │ ├── 48-1.c │ │ ├── 43-1.c │ │ ├── 27-1.c │ │ ├── 49-1.c │ │ ├── 31-1.c │ │ ├── 42-1.c │ │ ├── 29-1.c │ │ ├── 15-1.c │ │ ├── coverage.txt │ │ ├── 47-1.c │ │ └── 16-1.c │ ├── errno_h │ │ ├── 1-1.c │ │ └── 2-1.c │ ├── mqueue_h │ │ ├── 1-1.c │ │ ├── 4-1.c │ │ ├── 11-1.c │ │ ├── 2-1.c │ │ ├── 5-1.c │ │ ├── 6-1.c │ │ ├── 7-1.c │ │ ├── 10-1.c │ │ ├── 3-1.c │ │ ├── 8-1.c │ │ └── 9-1.c │ ├── unistd_h │ │ └── assertions.xml │ ├── aio_h │ │ ├── 1-1.c │ │ └── 1-2.c │ ├── pthread_h │ │ ├── 3-1.c │ │ ├── 3-6.c │ │ ├── 3-13.c │ │ ├── 1-1.c │ │ ├── 3-2.c │ │ ├── 3-4.c │ │ ├── 3-7.c │ │ ├── 3-9.c │ │ ├── 3-10.c │ │ ├── 3-5.c │ │ ├── 3-11.c │ │ ├── 3-8.c │ │ ├── 3-12.c │ │ ├── 3-3.c │ │ └── 5-1.c │ ├── time_h │ │ ├── 7-1.c │ │ ├── 7-2.c │ │ ├── 7-3.c │ │ ├── 7-5.c │ │ ├── 7-4.c │ │ ├── 1-1.c │ │ ├── 3-1.c │ │ ├── 3-2.c │ │ ├── 6-1.c │ │ ├── 6-2.c │ │ ├── 35-2.c │ │ ├── 35-1.c │ │ ├── 6-3.c │ │ ├── 3-3.c │ │ └── 3-4.c │ └── sys │ │ └── shm_h │ │ ├── coverage.txt │ │ └── 1-1.c └── behavior │ ├── timers │ ├── coverage.txt │ └── assertions.xml │ └── WIFEXITED │ └── assertions.xml ├── stress ├── semaphores │ ├── plan.txt │ ├── coverage.txt │ ├── assertions.xml │ └── Makefile ├── mqueues │ ├── plan.txt │ ├── coverage.txt │ ├── Makefile │ └── assertions.xml └── threads │ ├── fork │ ├── do-plot │ └── Makefile │ ├── sem_init │ ├── do-plot │ └── Makefile │ ├── sem_open │ ├── do-plot │ └── Makefile │ ├── pthread_create │ ├── do-plot │ └── Makefile │ ├── pthread_cond_timedwait │ └── do-plot │ ├── pthread_cancel │ └── Makefile │ ├── pthread_exit │ └── Makefile │ ├── pthread_kill │ └── Makefile │ ├── pthread_once │ └── Makefile │ ├── pthread_self │ └── Makefile │ ├── sem_getvalue │ └── Makefile │ ├── pthread_cond_init │ └── Makefile │ ├── pthread_getschedparam │ └── Makefile │ ├── pthread_mutex_trylock │ └── Makefile │ ├── pthread_mutex_init │ └── Makefile │ └── pthread_mutex_lock │ └── Makefile ├── functional ├── mqueues │ ├── plan.txt │ ├── coverage.txt │ └── Makefile ├── semaphores │ ├── plan.txt │ ├── coverage.txt │ └── Makefile ├── threads │ ├── robust_test │ │ └── Makefile │ ├── pi_test │ │ └── Makefile │ ├── Makefile.inc │ ├── run.sh │ ├── Makefile │ ├── tools │ │ └── watchdogtimer.sh │ ├── schedule │ │ └── Makefile │ └── condvar │ │ └── Makefile └── timers │ ├── coverage.txt │ └── Makefile ├── exec-func.sh ├── INSTALL ├── AUTHORS └── include └── posixtest.h /.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | .vscode -------------------------------------------------------------------------------- /test-src/cond.seeds: -------------------------------------------------------------------------------- 1 | adf995fd5129662e9d22545e57b690e1 2 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/clock_getcpuclockid/coverage.txt: -------------------------------------------------------------------------------- 1 | 1 YES 2 | 2 YES 3 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sem_post/coverage.txt: -------------------------------------------------------------------------------- 1 | 2 | assertion 3: not tested. 3 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sem_getvalue/coverage.c: -------------------------------------------------------------------------------- 1 | 2 | -- assertion 3: not tested. 3 | -------------------------------------------------------------------------------- /test-src/cancel.seeds: -------------------------------------------------------------------------------- 1 | 7625068008079e68332ec6c6accc7397 2 | 833538812beac925190140e0d5732793 3 | -------------------------------------------------------------------------------- /test-src/mutex.seeds: -------------------------------------------------------------------------------- 1 | a5918ba7f04df9cd7e98c6319e026605 2 | 3d5468e375e8de95c1e453b1b962ae2b 3 | -------------------------------------------------------------------------------- /test-src/yield.seeds: -------------------------------------------------------------------------------- 1 | 328c2a8d34887e9bf58b0443a52bb9b8 2 | 0882ad1b33a198d8443e411c9c1e8444 3 | -------------------------------------------------------------------------------- /test-src/yield_single.seeds: -------------------------------------------------------------------------------- 1 | d823bcda70d64b23c761c14d86ab8c65 2 | a3b89e5b6969c59026f1573c8b0d721c 3 | -------------------------------------------------------------------------------- /test-src/mutex_timedlock.seeds: -------------------------------------------------------------------------------- 1 | 01a536c0226ad2dc2abb128fe28539cc 2 | a41b399e9ebba9a6f0371c9d0bf494dd 3 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_getstackaddr/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_setstackaddr/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /posixtestsuite/stress/semaphores/plan.txt: -------------------------------------------------------------------------------- 1 | This document defines the plan for stress testing of POSIX Semaphores. 2 | 3 | -------------------------------------------------------------------------------- /posixtestsuite/functional/mqueues/plan.txt: -------------------------------------------------------------------------------- 1 | This document defines the plan for functional testing of POSIX message queue. 2 | -------------------------------------------------------------------------------- /posixtestsuite/stress/mqueues/plan.txt: -------------------------------------------------------------------------------- 1 | This document defines the plan for functional testing of POSIX message queues. 2 | 3 | -------------------------------------------------------------------------------- /posixtestsuite/functional/semaphores/plan.txt: -------------------------------------------------------------------------------- 1 | This document defines the plan for functional testing of POSIX Semaphores. 2 | 3 | -------------------------------------------------------------------------------- /posixtestsuite/stress/threads/fork/do-plot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mpdn/unthread/HEAD/posixtestsuite/stress/threads/fork/do-plot -------------------------------------------------------------------------------- /posixtestsuite/stress/threads/sem_init/do-plot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mpdn/unthread/HEAD/posixtestsuite/stress/threads/sem_init/do-plot -------------------------------------------------------------------------------- /posixtestsuite/stress/threads/sem_open/do-plot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mpdn/unthread/HEAD/posixtestsuite/stress/threads/sem_open/do-plot -------------------------------------------------------------------------------- /test-src/cond_timedwait.seeds: -------------------------------------------------------------------------------- 1 | 3b12d6a0dec536cacfbe5e65c117ea10 2 | 6ac16614ddeacdc32ec69c5a1be9b181 3 | c516e4619d4175a26d8c9955a0dd5468 4 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mmap/13-1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mpdn/unthread/HEAD/posixtestsuite/conformance/interfaces/mmap/13-1.c -------------------------------------------------------------------------------- /posixtestsuite/stress/semaphores/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for Semaphore stress tests. 2 | 3 | Assertion Covered? 4 | 1 YES 5 | -------------------------------------------------------------------------------- /posixtestsuite/stress/threads/pthread_create/do-plot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mpdn/unthread/HEAD/posixtestsuite/stress/threads/pthread_create/do-plot -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/shm_open/37-1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mpdn/unthread/HEAD/posixtestsuite/conformance/interfaces/shm_open/37-1.c -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/5-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test the definition of pid_t. 3 | */ 4 | 5 | #include 6 | 7 | pid_t dummy; 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/ctime/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for the ctime() function testing. 2 | 3 | Assertion Status 4 | 1 YES 5 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/time/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for the time() function testing. 2 | 3 | Assertion Status 4 | 1 YES 5 | -------------------------------------------------------------------------------- /posixtestsuite/stress/mqueues/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for Message Queue stress tests. 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/4-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test the definition of sigset_t. 3 | */ 4 | 5 | #include 6 | 7 | sigset_t dummy; 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/asctime/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for the asctime() function testing. 2 | 3 | Assertion Status 4 | 1 YES 5 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mktime/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for the mktime() function testing. 2 | 3 | Assertion Status 4 | 1 YES 5 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/behavior/timers/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for the behavior/timers section. 2 | 3 | ASSERTION COVERED? 4 | 1 YES 5 | 2 YES 6 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/17-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test the definition of ucontext_t. 3 | */ 4 | 5 | #include 6 | 7 | ucontext_t dummy; 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/18-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test the definition of ucontext_t. 3 | */ 4 | 5 | #include 6 | 7 | ucontext_t dummy; 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/3-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test the definition of sig_atomic_t. 3 | */ 4 | 5 | #include 6 | 7 | sig_atomic_t dummy; 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/localtime/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for the localtime() function testing. 2 | 3 | Assertion Status 4 | 1 YES 5 | -------------------------------------------------------------------------------- /posixtestsuite/stress/threads/pthread_cond_timedwait/do-plot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mpdn/unthread/HEAD/posixtestsuite/stress/threads/pthread_cond_timedwait/do-plot -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/errno_h/1-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * This test tests if error.h is exist and useble 3 | *author:ysun@lnxw.com 4 | */ 5 | 6 | #include 7 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/2-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test the definition of SIG_DFL. 3 | */ 4 | 5 | #include 6 | 7 | void (*dummy) (int) = SIG_DFL; 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/2-2.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test the definition of SIG_ERR. 3 | */ 4 | 5 | #include 6 | 7 | void (*dummy) (int) = SIG_ERR; 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/2-4.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test the definition of SIG_IGN. 3 | */ 4 | 5 | #include 6 | 7 | void (*dummy) (int) = SIG_IGN; 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/gmtime/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for the gmtime() function testing. 2 | 3 | Assertion Status 4 | 1 YES 5 | 2 YES 6 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/1-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test the existence of the signal.h file and that it can be 3 | included. 4 | */ 5 | 6 | #include 7 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/difftime/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for the difftime() function testing. 2 | 3 | Assertion Status 4 | 1 YES 5 | 2 YES 6 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/getpid/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for the getpid() function testing. 2 | 3 | Assertion Status 4 | 1 YES 5 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sched_setparam/4-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # This is tested implicitly via assertion 1. 3 | 4 | echo "Tested implicitly via assertion 1." 5 | exit 0 -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sighold/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for function sighold(). 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | -------------------------------------------------------------------------------- /posixtestsuite/functional/mqueues/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for Message Queue functional tests. 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_self/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_self() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 6 | NOTE: 7 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigrelse/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for function sigrelse(). 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_equal/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_equal() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 6 | NOTE: 7 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/aio_error/coverage.txt: -------------------------------------------------------------------------------- 1 | this file defines the coverage for the aio_error() function testing. 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_testcancel/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_testcancel function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 7 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigpause/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for function sigpause(). 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 9 | -------------------------------------------------------------------------------- /posixtestsuite/exec-func.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | for d in $(./locate-test --frun); do 4 | echo "Testing $d" 5 | pushd $d >/dev/null 6 | ./run.sh 7 | popd >/dev/null 8 | done 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/aio_return/coverage.txt: -------------------------------------------------------------------------------- 1 | this file defines the coverage for the aio_return() function testing. 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sched_setparam/24-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # This is tested implicitly via assertions 25, 26 and 27. 3 | 4 | echo "Tested implicitly via assertions 25, 26 and 27." 5 | exit 0 -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/2-3.c: -------------------------------------------------------------------------------- 1 | /* 2 | @pt:CX 3 | 4 | Test the definition of SIG_HOLD. 5 | */ 6 | 7 | #include 8 | 9 | void (*dummy) (int) = SIG_HOLD; 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mq_setattr/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the mq_setattr function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 YES 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/timer_delete/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for function timer_delete(). 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 YES 9 | -------------------------------------------------------------------------------- /posixtestsuite/functional/semaphores/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for Semaphore functional tests. 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 YES 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_cleanup_pop/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_cleanup_pop function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 7 | NOTE: 8 | 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_cleanup_push/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_cleanup_push function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 7 | NOTE: 8 | 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_setcanceltype/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_setcanceltype function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_condattr_getclock/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_condattr_getclock function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 7 | NOTE: 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_condattr_setclock/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_condattr_setclock function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 7 | NOTE: 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_key_delete/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_key_delete function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_setcancelstate/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_setcancelstate function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 8 | 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_spin_lock/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_spin_lock() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-30.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the POLL_IN macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef POLL_IN 8 | #error POLL_IN not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-31.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the POLL_OUT macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef POLL_OUT 8 | #error POLL_OUT not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-32.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the POLL_MSG macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef POLL_MSG 8 | #error POLL_MSG not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-33.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the POLL_ERR macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef POLL_ERR 8 | #error POLL_ERR not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-34.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the POLL_PRI macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef POLL_PRI 8 | #error POLL_PRI not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-35.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the POLL_HUP macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef POLL_HUP 8 | #error POLL_HUP not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-36.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the SI_USER macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef SI_USER 8 | #error SI_USER not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-37.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the SI_QUEUE macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef SI_QUEUE 8 | #error SI_QUEUE not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-38.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the SI_TIMER macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef SI_TIMER 8 | #error SI_TIMER not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-40.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the SI_MESGQ macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef SI_MESGQ 8 | #error SI_MESGQ not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_getdetachstate/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_attr_getdetachstate function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 7 | NOTE: 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_getschedparam/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_attr_getschedparam function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 7 | NOTE: 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_condattr_setpshared/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_condattr_setpshared function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 7 | NOTE: 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_rwlock_wrlock/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_rwlock_wrlock() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_spin_destroy/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_spin_destroy() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the ILL_ILLOPC macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef ILL_ILLOPC 8 | #error ILL_ILLOPC not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-2.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the ILL_ILLOPN macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef ILL_ILLOPN 8 | #error ILL_ILLOPN not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-3.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the ILL_ILLADR macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef ILL_ILLADR 8 | #error ILL_ILLADR not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-4.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the ILL_ILLTRP macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef ILL_ILLTRP 8 | #error ILL_ILLTRP not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-5.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the ILL_PRVOPC macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef ILL_PRVOPC 8 | #error ILL_PRVOPC not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-6.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the ILL_PRVREG macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef ILL_PRVREG 8 | #error ILL_PRVREG not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-7.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the ILL_COPROC macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef ILL_COPROC 8 | #error ILL_COPROC not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-8.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the ILL_BADSTK macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef ILL_BADSTK 8 | #error ILL_BADSTK not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-9.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the FPE_INTDIV macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef FPE_INTDIV 8 | #error FPE_INTDIV not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_getscope/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_attr_getscope function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 won't test 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_barrier_destroy/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_barrier_destroy() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_barrierattr_destroy/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_barrierattr_destroy() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 7 | NOTE: 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_detach/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_detach function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 9 | NOTE: 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_getcpuclockid/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_getcpuclockid function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 8 | Note: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_rwlockattr_setpshared/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_rwlockattr_init function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 NO 7 | Note: 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/timer_gettime/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for function timer_gettime(). 2 | 3 | Assertion Coverage 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 YES 9 | 6 YES 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-10.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the FPE_INTOVF macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef FPE_INTOVF 8 | #error FPE_INTOVF not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-11.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the FPE_FLTDIV macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef FPE_FLTDIV 8 | #error FPE_FLTDIV not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-12.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the FPE_FLTOVF macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef FPE_FLTOVF 8 | #error FPE_FLTOVF not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-13.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the FPE_FLTUND macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef FPE_FLTUND 8 | #error FPE_FLTUND not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-14.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the FPE_FLTRES macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef FPE_FLTRES 8 | #error FPE_FLTRES not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-15.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the FPE_FLTINV macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef FPE_FLTINV 8 | #error FPE_FLTINV not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-16.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the FPE_FLTSUB macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef FPE_FLTSUB 8 | #error FPE_FLTSUB not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-17.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the SEGV_MAPERR macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef SEGV_MAPERR 8 | #error SEGV_MAPERR not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-18.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the SEGV_ACCERR macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef SEGV_ACCERR 8 | #error SEGV_ACCERR not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-19.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the BUS_ADRALN macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef BUS_ADRALN 8 | #error BUS_ADRALN not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-20.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the BUS_ADRERR macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef BUS_ADRERR 8 | #error BUS_ADRERR not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-21.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the BUS_OBJERR macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef BUS_OBJERR 8 | #error BUS_OBJERR not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-22.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the TRAP_BRKPT macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef TRAP_BRKPT 8 | #error TRAP_BRKPT not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-23.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the TRAP_TRACE macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef TRAP_TRACE 8 | #error TRAP_TRACE not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-24.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the CLD_EXITED macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef CLD_EXITED 8 | #error CLD_EXITED not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-25.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the CLD_KILLED macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef CLD_KILLED 8 | #error CLD_KILLED not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-26.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the CLD_DUMPED macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef CLD_DUMPED 8 | #error CLD_DUMPED not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-27.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the CLD_TRAPPED macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef CLD_TRAPPED 8 | #error CLD_TRAPPED not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-28.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the CLD_STOPPED macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef CLD_STOPPED 8 | #error CLD_STOPPED not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-39.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the SI_ASYNCIO macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef SI_ASYNCIO 8 | #error SI_ASYNCIO not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_getstack/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_attr_getstack function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 won't test 7 | 8 | Note: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_barrierattr_init/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_barrierattr_init() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_condattr_getpshared/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_condattr_getpshared function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_getspecific/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_getspecific function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 NO *Will not test 6 | 3 YES 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_mutex_getprioceiling/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_mutex_getprioceiling function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 NO 6 | 3 NO 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_mutexattr_gettype/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_mutexattr_gettype function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_mutexattr_setprotocol/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_mutexattr_getprotocol function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | NOTE: 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_rwlock_tryrdlock/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_rwlock_tryrdlock() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_rwlock_trywrlock/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_rwlock_tryrdlock() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/22-29.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the CLD_CONTINUED macro is defined. 3 | */ 4 | 5 | #include 6 | 7 | #ifndef CLD_CONTINUED 8 | #error CLD_CONTINUED not defined 9 | #endif 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/getpid/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | getpid() always returns the process ID of the calling thread/process. 4 | 5 | 6 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_getschedpolicy/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_attr_getschedpolicy function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 8 | Note: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_mutexattr_getpshared/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_mutexattr_getpshared function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_mutexattr_setpshared/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_mutexattr_setpshared function: 2 | 3 | Assertion Tested? 4 | YES 5 | 2 YES 6 | 3 YES 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_rwlockattr_destroy/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_mutexattr_destroy function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 NO 8 | Note: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_spin_init/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_spin_init() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 9 | NOTE: 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sem_close/cln.sh: -------------------------------------------------------------------------------- 1 | 2 | rm -f /tmp/sem_* >/dev/null 2>&1 3 | rm -f a.out >/dev/null 2>&1 4 | 5 | for sem_id in `ipcs -s | awk '{print $2}'` ; do 6 | ipcrm sem $sem_id > /dev/null 2>&1 7 | done 8 | 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mq_getattr/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the mq_getattr function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 YES 9 | 6 YES 10 | 7 YES 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_atfork/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_atfork() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES - *Note: will not test ENOMEM 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_getinheritsched/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_attr_getinheritsched function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 won't test 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_getstackaddr/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_attr_getstackaddr function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 won't test 7 | 8 | Note: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_getstacksize/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_attr_getstacksize function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 won't test 7 | 8 | Note: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_barrierattr_setpshared/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_barrierattr_setpshared() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_mutexattr_setprioceiling/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_mutexattr_setprioceiling function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_spin_trylock/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_spin_trylock() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 9 | NOTE: 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_barrier_init/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_barrier_init() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 9 | NOTE: 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_rwlock_unlock/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_rwlock_unlock() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 9 | NOTE: 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mq_close/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the mq_close function. 2 | 3 | ASSERTION COVERED? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 WON'T - will not cover as this is undefined behavior 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mq_unlink/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the mq_unlink function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 NO - won't test 9 | 6 YES 10 | 7 YES 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_getschedparam/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_getschedparam() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 NO 6 | 3 YES *Tested implictly by 1-1 7 | 8 | Note: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_setschedparam/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_setschedparam() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 NO 6 | 3 YES *Tested implictly by 1-1 7 | 8 | Note: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_spin_unlock/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_spin_unlock() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES "May" assertion, always pass 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/functional/threads/robust_test/Makefile: -------------------------------------------------------------------------------- 1 | include ../Makefile.inc 2 | 3 | SRCS=$(wildcard *.c) 4 | TARGETS=$(patsubst %.c,%,$(SRCS)) 5 | CFLAGS+=-Wall -g -I../include 6 | 7 | all:$(TARGETS) 8 | 9 | clean: 10 | rm -rf $(TARGETS) 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_setdetachstate/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_attr_getdetachstate function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 9 | NOTE: 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_mutex_timedlock/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_mutex_timedlock function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 NO 7 | 4 YES 8 | 5 YES 9 | 10 | NOTE: 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_rwlock_destroy/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_rwlock_destroy function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES ** Tested EBUSY, but not EINVAL, 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_setspecific/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_getspecific function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 NO *Will not test 6 | 3 YES *Will not test [ENOMEM] 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sem_unlink/coverage.txt: -------------------------------------------------------------------------------- 1 | 2 | -- assertion 3: not tested. 3 | -- assertion 5: not tested. 4 | -- assertion 6: Not tested. 5 | -- assertion 7: Not tested. 6 | -- assertion 8: is being tested in the sem_unlink test cases. 7 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/signal/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for function signal(). 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 IMPLICITLY tested by all tests. 8 | 5 YES 9 | 6 YES 10 | 7 YES 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mq_notify/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the mq_notify function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 YES 9 | 6 YES 10 | 7 YES 11 | 8 YES 12 | 9 YES 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_barrierattr_getpshared/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_barrierattr_destroy() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 NO 8 | 9 | NOTE: 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_mutexattr_getprioceiling/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_mutexattr_getprioceiling function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 NO. Only test [EINVAL] 7 | 8 | NOTE: 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigaddset/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for function sigaddset(). 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 IMPLICITLY tested by assertion 1 7 | 4 YES 8 | 5 IMPLICITLY tested by assertion 4 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigdelset/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for function sigdelset(). 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 IMPLICITLY tested by assertion 1 7 | 4 YES 8 | 5 IMPLICITLY tested by assertion 4 9 | -------------------------------------------------------------------------------- /posixtestsuite/functional/threads/pi_test/Makefile: -------------------------------------------------------------------------------- 1 | include ../Makefile.inc 2 | 3 | SRCS=$(wildcard *.c) 4 | TARGETS=$(patsubst %.c,%,$(SRCS)) 5 | CFLAGS+=-Wall -D_GNU_SOURCE -g -I../include 6 | 7 | all:$(TARGETS) 8 | 9 | clean: 10 | rm -rf $(TARGETS) 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/clock_getres/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for testing the clock_getres() function. 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 YES 9 | 6 YES 10 | 7 YES 11 | 8 YES 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_setschedprio/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_setschedprio() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 NO 6 | 3 YES *Tested implictly by 1-1 7 | 4 NO 8 | 9 | Note: 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sem_post/cln.sh: -------------------------------------------------------------------------------- 1 | 2 | rm -f /tmp/mysem >/dev/null 2>&1 3 | rm -f /tmp/sem_* >/dev/null 2>&1 4 | rm -f a.out 5 | 6 | for sem_id in `ipcs -s | awk '{print $2}'` ; do 7 | ipcrm sem $sem_id > /dev/null 2>&1 8 | done 9 | 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sem_wait/cln.sh: -------------------------------------------------------------------------------- 1 | 2 | rm -f /tmp/mysem >/dev/null 2>&1 3 | rm -f /tmp/sem_* >/dev/null 2>&1 4 | rm -f a.out 5 | 6 | for sem_id in `ipcs -s | awk '{print $2}'` ; do 7 | ipcrm sem $sem_id > /dev/null 2>&1 8 | done 9 | 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/time/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | time() shall return the value of time in seconds since the 4 | Epoch. Otherwise shall return -1. 5 | 6 | 7 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/behavior/WIFEXITED/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Evaluates to a non-zero value if status was returned for a child process 4 | that terminated normally. 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/ctime/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | The ctime function return value is not NULL after converting the time 4 | value to a date and time string. 5 | 6 | 7 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_barrier_wait/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_barrier_wait() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 YES 9 | 6 YES 10 | 11 | NOTE: 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_mutex_lock/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_mutex_lock function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 3-1.c: Test [EINTR] 8 | 4 YES 9 | 5 YES 10 | NOTE: 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sched_getparam/5-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that sched_getparam() sets errno == ESRCH if the pid cannot be found. 4 | # This is tested implicitly via assertion 4. 5 | 6 | echo "Tested implicitly via assertion 4." 7 | exit 0 8 | 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sem_destroy/cln.sh: -------------------------------------------------------------------------------- 1 | 2 | rm -f /tmp/mysem >/dev/null 2>&1 3 | rm -f /tmp/sem_* >/dev/null 2>&1 4 | rm -f a.out 5 | 6 | for sem_id in `ipcs -s | awk '{print $2}'` ; do 7 | ipcrm sem $sem_id > /dev/null 2>&1 8 | done 9 | 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sem_getvalue/cln.sh: -------------------------------------------------------------------------------- 1 | 2 | rm -f /tmp/mysem >/dev/null 2>&1 3 | rm -f /tmp/sem_* >/dev/null 2>&1 4 | rm -f a.out 5 | 6 | for sem_id in `ipcs -s | awk '{print $2}'` ; do 7 | ipcrm sem $sem_id > /dev/null 2>&1 8 | done 9 | 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sem_open/cln.sh: -------------------------------------------------------------------------------- 1 | 2 | rm -f /tmp/mysem >/dev/null 2>&1 3 | rm -f /tmp/sem_open* >/dev/null 2>&1 4 | rm -f a.out 5 | 6 | for sem_id in `ipcs -s | awk '{print $2}'` ; do 7 | ipcrm sem $sem_id > /dev/null 2>&1 8 | done 9 | 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sem_unlink/cln.sh: -------------------------------------------------------------------------------- 1 | 2 | rm -f /tmp/mysem >/dev/null 2>&1 3 | rm -f /tmp/sem_* >/dev/null 2>&1 4 | rm -f a.out 5 | 6 | for sem_id in `ipcs -s | awk '{print $2}'` ; do 7 | ipcrm sem $sem_id > /dev/null 2>&1 8 | done 9 | 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/shm_open/31-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that shm_open() return -1 upon unsuccessful completion. 4 | # 5 | # This is tested implicitly via assertions 32 to 42. 6 | 7 | echo "Tested implicitly via assertions 32 to 42." 8 | exit 0 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mlock/7-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that the mlock() function return -1 upon unsuccessful completion. 4 | # 5 | # This is tested implicitly via assertions 8 to 12. 6 | 7 | echo "Tested implicitly via assertions 8 to 12." 8 | exit 0 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_key_create/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_key_create function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 NO *Will not test 8 | 5 NO *Will not test 9 | 10 | NOTE: 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/aio_suspend/coverage.txt: -------------------------------------------------------------------------------- 1 | this file defines the coverage for the aio_suspend() function testing. 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 NO 6 | 3 YES 7 | 4 YES 8 | 5 NO 9 | 6 YES 10 | 7 YES 11 | 8 YES 12 | 9 YES 13 | 10 NO 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mlockall/9-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that the mlockall() function return -1 upon unsuccessful completion. 4 | # 5 | # This is tested implicitly via assertions 12 to 15. 6 | 7 | echo "Tested implicitly via assertions 12 to 15." 8 | exit 0 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/munlock/9-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that the munlock() function return -1 upon unsuccessful completion. 4 | # 5 | # This is tested implicitly via assertions 10 and 11. 6 | 7 | echo "Tested implicitly via assertions 10 and 11." 8 | exit 0 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigset/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for the sigset() function testing. 2 | 3 | Assertion Status 4 | 1 DONE 5 | 2 DONE 6 | 3 DONE 7 | 4 DONE 8 | 5 DONE 9 | 6 DONE 10 | 7 DONE 11 | 8 DONE 12 | 9 DONE 13 | 10 DONE 14 | -------------------------------------------------------------------------------- /posixtestsuite/stress/semaphores/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | This is a test about multiple producers and consumers. Producers send data 4 | to a buffer. Consumers keeps reading data from the buffer. 5 | 6 | 7 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mlock/2-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test whether the implementation requires that addr be a multiple of 4 | # {PAGESIZE}. 5 | # 6 | # This is tested implicitly via assertion 10. 7 | 8 | echo "Tested implicitly via assertion 10." 9 | exit 0 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/shm_unlink/7-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that the shm_unlink() function return -1 upon unsuccessful completion. 4 | # 5 | # This is tested implicitly via assertions 9 to 11. 6 | 7 | echo "Tested implicitly via assertions 9 to 11." 8 | exit 0 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigtimedwait/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for the sigtimedwait() function testing. 2 | 3 | Assertion Status 4 | 1 DONE 5 | 2 DONE 6 | 3 Implicitly tested via tests 1, 2, 4, and 5. 7 | 4 DONE 8 | 5 DONE 9 | 6 DONE 10 | 11 | -------------------------------------------------------------------------------- /posixtestsuite/INSTALL: -------------------------------------------------------------------------------- 1 | 2 | This package does not install yet ... it is intended to be run 3 | directly. 4 | 5 | See BUILD for information on how to configure your system to build 6 | all tests. 7 | 8 | See Documentation/HOWTO_RunTests for information on how to run all tests. 9 | 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/50-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that inclusion of signal.h makes visible all symbols in time.h. 3 | 4 | NOTE - THIS TEST CASE IS NOT COMPLETE. NEEDS TO GROW MUCH LARGER. 5 | */ 6 | 7 | #include 8 | 9 | struct tm *mytime; 10 | 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mlock/4-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that the appropriate privilege is required to lock process memory with 4 | # mlock() 5 | # 6 | # This is tested implicitly via assertion 12. 7 | 8 | echo "Tested implicitly via assertion 12." 9 | exit 0 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/munlock/2-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test whether the implementation requires that addr be a multiple of 4 | # {PAGESIZE}. 5 | # 6 | # This is tested implicitly via assertion 11. 7 | 8 | echo "Tested implicitly via assertion 11." 9 | exit 0 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_rwlock_timedrdlock/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_rwlock_timerdlock() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 YES 9 | 6 YES 10 | 7 YES 11 | 12 | NOTE: 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_rwlock_timedwrlock/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_rwlock_timedwrlock() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 YES 9 | 6 YES 10 | 7 YES 11 | 12 | NOTE: 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sched_yield/3-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Test that sched_yield() returns -1 on failure. 3 | # 4 | # The function shall always succeed, so nothing can be done for this test. 5 | 6 | echo "Nothing to do for this test, the function shall always succeed." 7 | exit 0 -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/shm_open/4-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that the name argument conforms to the construction rules for a 4 | # pathname. 5 | # 6 | # This is tested implicitly via assertion 39. 7 | 8 | echo "Tested implicitly via assertion 39." 9 | exit 0 10 | -------------------------------------------------------------------------------- /posixtestsuite/functional/mqueues/Makefile: -------------------------------------------------------------------------------- 1 | INCLUDE = -I../../include 2 | LIB=-lrt -lpthread 3 | 4 | CFLAGS=-Wall -O2 -g 5 | 6 | all: send_rev_1.test send_rev_2.test 7 | 8 | %.test : %.c 9 | $(CC) $(CFLAGS) $(INCLUDE) $< -o $@ $(LIB) 10 | clean: 11 | rm *.test 12 | 13 | 14 | -------------------------------------------------------------------------------- /test-src/cancel.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | /* 5 | BEGIN_TEST_SPEC 6 | ["NOT CANCELED", ""] 7 | END_TEST_SPEC 8 | */ 9 | 10 | int main() { 11 | pthread_cancel(pthread_self()); 12 | pthread_testcancel(); 13 | printf("NOT CANCELED"); 14 | return 0; 15 | } -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mlockall/7-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that the appropriate privilege is required to lock process memory with 4 | # mlockall() 5 | # 6 | # This is tested implicitly via assertion 15. 7 | 8 | echo "Tested implicitly via assertion 15." 9 | exit 0 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sched_getscheduler/6-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that sched_getscheduler() sets errno == ESRCH if the pid cannot be 4 | # found. 5 | # This is tested implicitly via assertion 5. 6 | 7 | echo "Tested implicitly via assertion 5." 8 | exit 0 9 | 10 | -------------------------------------------------------------------------------- /posixtestsuite/functional/timers/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for Timers functional tests. 2 | 3 | Assertion Covered? 4 | 1 NO 5 | 2 NO 6 | 3 NO 7 | 4 NO 8 | 5 NO 9 | 6 NO 10 | 7 YES 11 | 8 NO 12 | 9 NO 13 | 10 NO 14 | 11 NO 15 | 12 YES 16 | 13 YES 17 | 14 NO 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sem_close/coverage.txt: -------------------------------------------------------------------------------- 1 | 2 | assertion 4: 3 | TEST WAS REMOVED: based on the Austin Group mailing list traffic "That 4 | implemntation is not required to detect invalid parameters". May be some one 5 | else could figure out a way to write a test case for it. 6 | 7 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/shm_open/14-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that the file is open for write acces when the applications specify 4 | # the value of O_RDWR. 5 | # 6 | # This is tested implicitly via assertion 1. 7 | 8 | echo "Tested implicitly via assertion 1." 9 | exit 0 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/localtime/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | locatime function shall return a pointer to the tm structure when converting 4 | a time value to a broken down local time. 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_exit/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_exit function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 NO ** Skipping for now. 8 | 5 NO ** Skipping for now. 9 | 6 NO ** Skipping for now. 10 | 11 | NOTE: 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_mutexattr_getprotocol/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_mutexattr_getprotocol function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 NO 7 | 4 NO 8 | 5 No 9 | 6 No 10 | 7 NO 11 | 8 NO 12 | 9 NO 13 | NOTE: 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sched_rr_get_interval/4-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that sched_rr_get_interval() sets errno == ESRCH if the pid cannot be 4 | # found. 5 | # This is tested implicitly via assertion 3. 6 | 7 | echo "Tested implicitly via assertion 3." 8 | exit 0 9 | 10 | 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sem_destroy/coverage.txt: -------------------------------------------------------------------------------- 1 | -- assertion 5: not tested. 2 | 3 | -- assertion 6: ERROR EBUSY: is not tested. Please contribute 4 | your help for this test case. 5 | 6 | -- assertion 7: Won't be tested. (Undefined). 7 | 8 | -- assertion 8: Won't be tested. (Undefined). 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/shm_open/13-2.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that the file is open for read acces when the applications specify 4 | # the value of O_RDONLY. 5 | # 6 | # This is tested implicitly via assertion 1. 7 | 8 | echo "Tested implicitly via assertion 1." 9 | exit 0 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigwaitinfo/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for function sigwaitinfo(). 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 IMPLICITLY tested in assertions 1, 2, and 3. 8 | 5 YES 9 | 6 YES 10 | 7 YES 11 | 8 YES 12 | 9 YES 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/errno_h/2-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | *The header shall provide a 3 | *declaration for errno 4 | *author:ysun@lnxw.com 5 | */ 6 | 7 | #include 8 | 9 | int errno_test; 10 | 11 | int dummyfcn (void) 12 | { 13 | errno_test = errno; 14 | return 0; 15 | } 16 | 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/aio_write/coverage.txt: -------------------------------------------------------------------------------- 1 | this file defines the coverage for the aio_write() function testing. 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 YES 9 | 6 YES 10 | 7 YES 11 | 8 YES 12 | 9 YES 13 | 10 NO 14 | 11 NO 15 | 12 NO 16 | 13 YES 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_rwlockattr_getpshared/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_mutexattr_getpshared function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 NO: since the behavior is "undefined" 7 | 4 YES 8 | 5 YES 9 | 6 NO 10 | 11 | NOTE: 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_self/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | The function 4 | 5 | pthread_t pthread_self(void) 6 | 7 | returns the thread ID of the calling thread. No errors are defined. 8 | 9 | 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sched_get_priority_max/3-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that sched_get_priority_max() sets errno == EINVAL if policy is not a 4 | # valid policy. 5 | # This is tested implicitly via assertion 2. 6 | 7 | echo "Tested implicitly via assertion 2." 8 | exit 0 9 | 10 | 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sched_get_priority_max/coverage.txt: -------------------------------------------------------------------------------- 1 | This document explains why certain assertions were not tested. 2 | 3 | Assertions not listed here should be covered by the tests in this directory. 4 | 5 | 6 | Assertions Tested ? Remarks 7 | 1 YES 8 | 2 YES 9 | 3 YES -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sched_get_priority_min/3-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that sched_get_priority_min() sets errno == EINVAL if policy is not a 4 | # valid policy 5 | # This is tested implicitly via assertion 2. 6 | 7 | echo "Tested implicitly via assertion 2." 8 | exit 0 9 | 10 | 11 | -------------------------------------------------------------------------------- /posixtestsuite/functional/threads/Makefile.inc: -------------------------------------------------------------------------------- 1 | # 2 | # Include this file in your Makefile for linking against the built NPTL 3 | # and GLIBC 4 | # 5 | # NOTE: Before making the test suite, you need to build glibc. $LIBC_PATCH 6 | # stands for the path of GLIBC, please export it first. 7 | 8 | LDFLAGS += -lpthread 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/munlockall/6-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that the munlockall() function return a value of -1 if it is not 4 | # supported by the implementation. 5 | # 6 | # This is tested implicitly via assertion 5. 7 | 8 | echo "Tested implicitly via assertion 5." 9 | exit 0 10 | 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_setscope/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_attr_setscope function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 NO 6 | 3 YES 7 | 4 YES 8 | 5 NO. Incorrect test -- What's the unsupported value? 9 | 6 Won't test 10 | 11 | NOTE: 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/aio_fsync/coverage.txt: -------------------------------------------------------------------------------- 1 | this file defines the coverage for the aio_fsync() function testing. 2 | 3 | Assertion Covered? 4 | 1 NO 5 | 2 NO 6 | 3 NO 7 | 4 YES 8 | 5 NO 9 | 6 NO 10 | 7 NO 11 | 8 YES 12 | 9 YES 13 | 10 NO 14 | 11 NO 15 | 12 YES 16 | 13 NO 17 | 14 YES 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/asctime/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | The asctime() function shall convert the broken-down time in the structure pointed to by timeptr into a string in the form: Sun Sep 16 01:03:52 1973\n\0 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/28-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | int raise(int); 4 | is declared. 5 | */ 6 | 7 | #include 8 | 9 | typedef int (*raise_test)(int); 10 | 11 | int dummyfcn (void) 12 | { 13 | raise_test dummyvar; 14 | dummyvar = raise; 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_init/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_attr_init function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 NO ** WON'T test since it is more of a stress test rather than 9 | conformance. 10 | 11 | Note: 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_setschedpolicy/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_attr_setschedpolicy function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 NO 6 | 3 YES 7 | 4 YES 8 | 5 Incorrect test -- What's the unsupported value? 9 | 6 won't test 10 | 11 | Note: 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_rwlockattr_init/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_rwlockattr_init function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 NO *Looking for a way to use up the memory without screwing 8 | up the machine. 9 | 10 | Note: 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sched_setscheduler/18-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that sched_setscheduler() function return a value of -1 when it fails to 4 | # complete successfully. 5 | # 6 | # This is tested implicitly via assertions 19, 20 and 21. 7 | 8 | echo "Tested implicitly via assertions 19, 20 and 21." 9 | exit 0 -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_setinheritsched/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_attr_setinheritsched function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 NO Incorrect test -- What's the unsupported value? 9 | 6 Won't test 10 | 11 | NOTE: 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/44-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | int sigrelse(int); 4 | is declared. 5 | */ 6 | 7 | #include 8 | 9 | typedef int (*sigrelse_test)(int); 10 | 11 | int dummyfcn (void) 12 | { 13 | sigrelse_test dummyvar; 14 | dummyvar = sigrelse; 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/aio_read/coverage.txt: -------------------------------------------------------------------------------- 1 | this file defines the coverage for the aio_read() function testing. 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 NO 6 | 3 YES 7 | 4 YES 8 | 5 YES 9 | 6 YES 10 | 7 YES 11 | 8 YES 12 | 9 YES 13 | 10 YES 14 | 11 YES 15 | 12 NO 16 | 13 NO 17 | 14 NO 18 | 15 YES 19 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sched_yield/coverage.txt: -------------------------------------------------------------------------------- 1 | This document explains why certain assertions were not tested. 2 | 3 | Assertions not listed here should be covered by the tests in this directory. 4 | 5 | 6 | Assertions Tested ? Remarks 7 | 1 YES 8 | 2 YES 9 | 3 YES The function shall always succeed. -------------------------------------------------------------------------------- /posixtestsuite/functional/threads/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | CURRENT_DIR=$(pwd) 4 | TEST_DIRS="robust_test pi_test" 5 | 6 | for test_dir in $TEST_DIRS; do 7 | 8 | echo "" 9 | echo "Run $test_dir tests" 10 | echo "==============================" 11 | echo "" 12 | cd $CURRENT_DIR/$test_dir; 13 | ./run.sh 14 | done 15 | 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/20-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test the definition of sigstack. 3 | */ 4 | 5 | #include 6 | 7 | struct sigstack this_type_should_exist, t; 8 | int onstack; 9 | void *sp; 10 | 11 | int dummyfcn (void) 12 | { 13 | sp = t.ss_sp; 14 | onstack = t.ss_onstack; 15 | 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_rwlock_init/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_rwlock_init() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 NO **Need to find out how to test EGAIN, ENOMEM and EPERM 9 | 6 YES *Tested EBUSY, but not EINVAL 10 | 11 | NOTE: 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/shm_open/35-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that the shm_open() function sets errno = EEXIST if O_CREAT and O_EXCL 4 | # are set and the named shared memory object already exists. 5 | # 6 | # This is tested implicitly via assertion 22. 7 | 8 | echo "Tested implicitly via assertion 22." 9 | exit 0 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_rwlock_rdlock/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_rwlock_rdlock() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES ** Need support of Threads Execution Scheduling 6 | 3 NO: ** Need support of SCHED_SPORADIC 7 | 4 YES 8 | 5 YES 9 | 6 YES 10 | 11 | NOTE: 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/shm_open/30-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that shm_open() returns a non-negative integer representing the 4 | # lowest numbered unused file descriptor upon successful completion. 5 | # 6 | # This is tested implicitly via assertion 8. 7 | 8 | echo "Tested implicitly via assertion 8." 9 | exit 0 10 | 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/35-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | @:pt:XSI 3 | Test that the function: 4 | int sighold(int); 5 | is declared. 6 | */ 7 | 8 | #include 9 | 10 | typedef int (*sighold_test)(int); 11 | 12 | int dummyfcn (void) 13 | { 14 | sighold_test dummyvar; 15 | dummyvar = sighold; 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sched_setparam/11-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # The originating process might not receive notification of the completion of 4 | # the requested priority change until the higher priority process has executed. 5 | # 6 | # This is tested implicitly via assertion 10. 7 | 8 | echo "Tested implicitly via assertion 10." 9 | exit 0 -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/40-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | @:pt:XSI 3 | Test that the function: 4 | int sigpause(int); 5 | is declared. 6 | */ 7 | 8 | #include 9 | 10 | typedef int (*sigpause_test)(int); 11 | 12 | int dummyfcn (void) 13 | { 14 | sigpause_test dummyvar; 15 | dummyvar = sigpause; 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sem_timedwait/coverage.txt: -------------------------------------------------------------------------------- 1 | 2 | This file defines the coverage for sem_timedwait 3 | 4 | ASSERTION COVERED? 5 | 1 YES 6 | 2 YES 7 | 3 YES 8 | 4 YES 9 | 5 NO 10 | 6 YES 11 | 7 YES 12 | 8 WON'T -- couldn't figure out away of doing it. 13 | 9 YES 14 | 10 YES 15 | 11 YES 16 | 17 | 18 | 19 | ~ 20 | -------------------------------------------------------------------------------- /posixtestsuite/functional/threads/Makefile: -------------------------------------------------------------------------------- 1 | include Makefile.inc 2 | SUBDIRS=robust_test pi_test 3 | 4 | .PHONY : all 5 | 6 | all: 7 | $(foreach SUBDIR,$(SUBDIRS),make -C $(SUBDIR);) 8 | install: 9 | $(foreach SUBDIR,$(SUBDIRS),make -C $(SUBDIR) install;) 10 | clean: 11 | rm -f *~ 12 | $(foreach SUBDIR,$(SUBDIRS),make -C $(SUBDIR) clean;) 13 | 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/34-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | int sigfillset(sigset_t *); 4 | is declared. 5 | */ 6 | 7 | #include 8 | 9 | typedef int (*sigfillset_test)(sigset_t *); 10 | 11 | int dummyfcn (void) 12 | { 13 | sigfillset_test dummyvar; 14 | dummyvar = sigfillset; 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/36-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | @:pt:XSI 3 | Test that the function: 4 | int sigignore(int); 5 | is declared. 6 | */ 7 | 8 | #include 9 | 10 | typedef int (*sigignore_test)(int); 11 | 12 | int dummyfcn (void) 13 | { 14 | sigignore_test dummyvar; 15 | dummyvar = sigignore; 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/19-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test the definition of stack_t. 3 | */ 4 | 5 | #include 6 | 7 | stack_t this_type_should_exist, t; 8 | void *sp; 9 | size_t size; 10 | int flags; 11 | 12 | int dummyfcn (void) 13 | { 14 | sp = t.ss_sp; 15 | size = t.ss_size; 16 | flags = t.ss_flags; 17 | 18 | return 0; 19 | } 20 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/24-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | int kill(pid_t, int); 4 | is declared. 5 | */ 6 | 7 | #include 8 | #include 9 | 10 | typedef int (*kill_test)(pid_t, int); 11 | 12 | int dummyfcn (void) 13 | { 14 | kill_test dummyvar; 15 | dummyvar = kill; 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/30-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | int sigaddset(sigset_t *, int); 4 | is declared. 5 | */ 6 | 7 | #include 8 | 9 | typedef int (*sigaddset_test)(sigset_t *, int); 10 | 11 | int dummyfcn (void) 12 | { 13 | sigaddset_test dummyvar; 14 | dummyvar = sigaddset; 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/32-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | int sigdelset(sigset_t *, int); 4 | is declared. 5 | */ 6 | 7 | #include 8 | 9 | typedef int (*sigdelset_test)(sigset_t *, int); 10 | 11 | int dummyfcn (void) 12 | { 13 | sigdelset_test dummyvar; 14 | dummyvar = sigdelset; 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/33-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | int sigemptyset(sigset_t *); 4 | is declared. 5 | */ 6 | 7 | #include 8 | 9 | typedef int (*sigemptyset_test)(sigset_t *); 10 | 11 | int dummyfcn (void) 12 | { 13 | sigemptyset_test dummyvar; 14 | dummyvar = sigemptyset; 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/37-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | int siginterrupt(int, int); 4 | is declared. 5 | */ 6 | 7 | #include 8 | 9 | typedef int (*siginterrupt_test)(int, int); 10 | 11 | int dummyfcn (void) 12 | { 13 | siginterrupt_test dummyvar; 14 | dummyvar = siginterrupt; 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigaltstack/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for the sigaltstack() function testing. 2 | 3 | Assertion Status 4 | 1 DONE 5 | 2 DONE 6 | 3 DONE 7 | 4 IMPLICITLY tested by assertion 1. 8 | 5 DONE 9 | 6 DONE 10 | 7 DONE 11 | 8 DONE 12 | 9 DONE 13 | 10 DONE 14 | 11 DONE 15 | 12 DONE 16 | 13 NOT YET 17 | 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/25-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | int killpg(pid_t, int); 4 | is declared. 5 | */ 6 | 7 | #include 8 | #include 9 | 10 | typedef int (*killpg_test)(pid_t, int); 11 | 12 | int dummyfcn (void) 13 | { 14 | killpg_test dummyvar; 15 | dummyvar = killpg; 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/46-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | int sigsuspend(const sigset_t *); 4 | is declared. 5 | */ 6 | 7 | #include 8 | 9 | typedef int (*sigsuspend_test)(const sigset_t *); 10 | 11 | int dummyfcn (void) 12 | { 13 | sigsuspend_test dummyvar; 14 | dummyvar = sigsuspend; 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mktime/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | This test case shall return PASS on converting the broken down July 4th 2001 4 | into a time since the Epoch, which is the same encoding as of the value 5 | returned by time(), otherwise it fails with -1. 6 | 7 | 8 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_mutex_init/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_mutex_init function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 YES 9 | 5-1.c: Test for ENOMEM 10 | 5-3.c: Test for EINTR 11 | speculative/5-2.c: Test for EPERM. Not available on 12 | Linux. 13 | NOTE: 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigemptyset/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for function sigemptyset(). 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 WON'T 7 | 8 | WON'T TEST 9 | 3-1 - Not possible to make sigemptyset() fail at will to return a -1. 10 | POSIX spec doesn't mention how to cause sigemptyset() to fail 11 | when called. 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigfillset/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for function sigemptyset(). 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 WON'T 7 | 8 | WON'T TEST 9 | 3-1 - Not possible to make sigfillset() fail at will to return a -1. 10 | POSIX spec doesn't mention how to cause sigfillset() to fail 11 | when called. 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigpending/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for function sigpending(). 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 WON'T 7 | 8 | WON'T TEST 9 | 3-1 - Not possible to make sigfillset() fail at will to return a -1. 10 | POSIX spec doesn't mention how to cause sigfillset() to fail 11 | when called. 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/26-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | int pthread_kill(pthread_t, int); 4 | is declared. 5 | */ 6 | 7 | #include 8 | 9 | typedef int (*pthread_kill_test)(pthread_t, int); 10 | 11 | int dummyfcn (void) 12 | { 13 | pthread_kill_test dummyvar; 14 | dummyvar = pthread_kill; 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/39-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | void (*signal(int, void (*)(int)))(int); 4 | is declared. 5 | */ 6 | 7 | #include 8 | 9 | typedef void (*(*signal_test)(int, void (*)(int)))(int); 10 | 11 | int dummyfcn (void) 12 | { 13 | signal_test dummyvar; 14 | dummyvar = signal; 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/41-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | @:pt:CX 3 | Test that the function: 4 | int sigpending(sigset_t *); 5 | is declared. 6 | */ 7 | 8 | #include 9 | 10 | typedef int (*sigpending_test)(sigset_t *); 11 | 12 | int dummyfcn (void) 13 | { 14 | sigpending_test dummyvar; 15 | dummyvar = sigpending; 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/45-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | void (*sigset(int, void (*)(int)))(int); 4 | is declared. 5 | */ 6 | 7 | #include 8 | 9 | typedef void (*(*sigset_test)(int, void (*)(int)))(int); 10 | 11 | int dummyfcn (void) 12 | { 13 | sigset_test dummyvar; 14 | dummyvar = sigset; 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/gmtime/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | The names in the broken-down tm structure should correspond to its values. 4 | 5 | 6 | The gmtime function shall return a pointer to a struct tm. 7 | 8 | 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mq_send/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the mq_send() function. 2 | 3 | ASSERTION COVERED? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 YES 9 | 6 WON'T - will not test as needs Priority Scheduling to finish 10 | 7 YES 11 | 8 YES 12 | 9 YES 13 | 10 YES 14 | 11 YES 15 | 12 YES 16 | 13 YES 17 | 14 YES 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_kill/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for the kill() function testing. 2 | 3 | Assertion Status 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 IMPLICITLY tested by assertions 6 and 7. 8 | 5 IMPLICITLY tested by assertions 6 and 7. 9 | 6 YES 10 | 7 YES 11 | 8 WON'T test. No way to interrupt the pthread_kill() call. 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/munmap/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the munmap() function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 NO **Not sure how to test whether certain page is locked 9 | 6 NO ** Typed Memory object 10 | 7 YES 11 | 8 NO: ** Typed Memory object 12 | 9 YES 13 | 10 YES 14 | 15 | NOTE: 16 | -------------------------------------------------------------------------------- /posixtestsuite/functional/semaphores/Makefile: -------------------------------------------------------------------------------- 1 | 2 | INCLUDE = -I../../include 3 | LIB= 4 | 5 | CFLAGS=-Wall -O2 -g 6 | 7 | all: make-test 8 | make-test: sem_lock.test sem_conpro.test sem_readerwriter.test sem_philosopher.test sem_sleepingbarber.test 9 | 10 | %.test : %.c 11 | $(CC) $(CFLAGS) $(INCLUDE) $< -o $@ $(LIB) -lpthread 12 | clean: 13 | rm *.test 14 | 15 | 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/behavior/timers/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | TIMER_MAX in limits.h defines the maximum number of processes that 4 | the implementation supports 5 | 6 | 7 | TIMER_MAX must be >= _POSIX_TIMER_MAX 8 | 9 | 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/38-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | int sigismember(const sigset_t *, int); 4 | is declared. 5 | */ 6 | 7 | #include 8 | 9 | typedef int (*sigismember_test)(const sigset_t *, int); 10 | 11 | int dummyfcn (void) 12 | { 13 | sigismember_test dummyvar; 14 | dummyvar = sigismember; 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/munlockall/coverage.txt: -------------------------------------------------------------------------------- 1 | This document explains why certain assertions were not tested. 2 | 3 | Assertions not listed here should be covered by the tests in this directory. 4 | 5 | 6 | Assertions Tested ? Remarks 7 | 1 NO 8 | 2 NO 9 | 3 NO 10 | 4 NO Unspecified 11 | 5 YES 12 | 6 YES 13 | 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_setstacksize/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_attr_setstacksize function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES (The test uses a Non-POSIX-Compliant API 6 | pthread_getattr_np to get attr in a created thread) 7 | 3 YES 8 | 4 YES 9 | 5 won't test 10 | 11 | Note: 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/shm_unlink/4-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that the reuse of the name subsequently causes shm_open() to fail 4 | # if O_CREAT is not set even if the object continues to exist after the last 5 | # shm_unlink() 6 | # 7 | # This is tested implicitly via assertions 1 and 2. 8 | 9 | echo "Tested implicitly via assertions 1 and 2." 10 | exit 0 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigsuspend/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for function sigsuspend(). 2 | 3 | Assertion Covered? 4 | 1 YES, but will go back an investigate incase there's a better way to test this. 5 | 2 NO, skipping any threads-related testing for now 6 | 3 YES 7 | 4 YES 8 | 5 Already tested in sigignore. 9 | 6 YES 10 | 7 YES 11 | 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mq_receive/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the mq_receive function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 NO - implementation-defined, won't test. 7 | 4 YES 8 | 5 YES 9 | 6 NO - won't test. 10 | 7 YES 11 | 8 YES 12 | 9 YES 13 | 10 YES 14 | 11 YES 15 | 12 YES 16 | 13 YES 17 | 14 NO - won't test. 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_cond_wait/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_cond_wait function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 NO * When it specifies it 'may' fail and not 'shall' fail, 8 | it will always return PASS, but will return a 9 | PASS and print out a warning if it fails. 10 | NOTE: 11 | -------------------------------------------------------------------------------- /posixtestsuite/stress/semaphores/Makefile: -------------------------------------------------------------------------------- 1 | ifndef POSIX_DIR_LIB 2 | POSIX_DIR_LIB=/usr/lib 3 | endif 4 | 5 | INCLUDE = -I../../include 6 | LIB=-lposix1b 7 | 8 | CC=gcc 9 | CFLAGS=-Wall -O2 -g -I$(POSIX_DIR_INC) -L$(POSIX_DIR_LIB) 10 | 11 | all: multi_con_pro.test 12 | 13 | %.test : %.c 14 | $(CC) $(CFLAGS) $(INCLUDE) $< -o $@ $(LIB) -lpthread 15 | clean: 16 | rm *.test 17 | 18 | 19 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/mqueue_h/1-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test for the existance and valid format 3 | of the mq_attr structure as specified on 4 | line 9678 of the Base Definitions document 5 | */ 6 | 7 | #include 8 | #include "posixtest.h" 9 | #include 10 | 11 | int main() 12 | { 13 | fprintf(stderr, "Not Implemented!\n"); 14 | return PTS_UNTESTED; 15 | } 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/mqueue_h/4-1.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "posixtest.h" 3 | #include 4 | /* 5 | Test for the existance and valid prototype 6 | of the mq_notify function as specified on 7 | line 9686 of the Base Definitions document 8 | */ 9 | 10 | int main() 11 | { 12 | fprintf(stderr, "Test not implemented!\n"); 13 | return PTS_UNTESTED; 14 | } 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sched_setscheduler/3-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that the scheduling policy and scheduling parameters are set for the 4 | # process whose process ID is equal to pid when such a process exists and the 5 | # the calling process has permission. 6 | # 7 | # This is tested implicitly via assertion 1. 8 | 9 | echo "Tested implicitly via assertion 1." 10 | exit 0 -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/mqueue_h/11-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test for the existance and valid prototype 3 | of the mq_unlink function as specified on 4 | line 9696 of the Base Definitions document 5 | */ 6 | 7 | #include 8 | #include "posixtest.h" 9 | #include 10 | 11 | int main() 12 | { 13 | fprintf(stderr, "Test not implemented!\n"); 14 | return PTS_UNTESTED; 15 | } 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/23-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | @pt:XSI 3 | Test that the function: 4 | void (*bsd_signal(int, void (*)(int)))(int); 5 | is declared. 6 | */ 7 | 8 | #include 9 | 10 | typedef void (*(*bsd_signal_test)(int, void (*)(int)))(int); 11 | 12 | int dummyfcn (void) 13 | { 14 | bsd_signal_test dummyvar; 15 | dummyvar=bsd_signal; 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/48-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | int sigwait(const sigset_t *restrict, int *restrict); 4 | is declared. 5 | */ 6 | 7 | #include 8 | 9 | typedef int (*sigwait_test)(const sigset_t *restrict, int *restrict); 10 | 11 | int dummyfcn (void) 12 | { 13 | sigwait_test dummyvar; 14 | dummyvar = sigwait; 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/unistd_h/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | The function below is defined: 4 | int fsync(int fildes); 5 | 6 | 7 | The function below is defined: 8 | int ftruncate(int fildes, off_t length); 9 | 10 | 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_condattr_init/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_condattr_init function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 NO *Looking for a way to judge if initialized condition 6 | variables are affected. 7 | 3 YES 8 | 4 NO * Looking for a way to produce the error conditions 9 | 10 | NOTE: 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigwait/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for function sigwait(). 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 NOT DONE YET 9 | 6 NOT DONE YET 10 | 7 NOT DONE YET 11 | 8 YES 12 | 9 WON'T test, as there is no known way to create a signal set that contains an invalid or unsupported signal. 13 | 10 NOT DONE YET 14 | -------------------------------------------------------------------------------- /posixtestsuite/AUTHORS: -------------------------------------------------------------------------------- 1 | geoffrey.r.gustafson REMOVE-THIS AT intel DOT com 2 | inaky.perez-gonzalez REMOVE-THIS AT intel DOT com 3 | julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | majid.awad REMOVE-THIS AT intel DOT com 5 | rolla.n.selbak REMOVE-THIS AT intel DOT com 6 | rusty.lynch REMOVE-THIS AT intel DOT com 7 | salwan.searty REMOVE-THIS AT intel DOT com 8 | sunyi REMOVE-THIS AT users DOT sourceforge DOT net 9 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/mqueue_h/2-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test for the existance and valid prototype 3 | of the mq_close function as specified on 4 | line 9684 of the Base Definitions document 5 | */ 6 | 7 | #include 8 | #include "posixtest.h" 9 | #include 10 | 11 | int main() 12 | { 13 | fprintf(stderr, "Test not implemented!\n"); 14 | return PTS_UNTESTED; 15 | } 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/mqueue_h/5-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test for the existance and valid prototype 3 | of the mq_open function as specified on 4 | line 9687 of the Base Definitions document 5 | */ 6 | 7 | #include 8 | #include "posixtest.h" 9 | #include 10 | 11 | int main() 12 | { 13 | fprintf(stderr, "Test not implemented!\n"); 14 | return PTS_UNTESTED; 15 | } 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/mqueue_h/6-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test for the existance and valid prototype 3 | of the mq_receive function as specified on 4 | line 9688 of the Base Definitions document 5 | */ 6 | 7 | #include 8 | #include "posixtest.h" 9 | #include 10 | 11 | int main() 12 | { 13 | fprintf(stderr, "Test not implemented!\n"); 14 | return PTS_UNTESTED; 15 | } 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/mqueue_h/7-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test for the existance and valid prototype 3 | of the mq_send function as specified on 4 | line 9689 of the Base Definitions document 5 | */ 6 | 7 | #include 8 | #include "posixtest.h" 9 | #include 10 | 11 | int main() 12 | { 13 | fprintf(stderr, "Test not implemented!\n"); 14 | return PTS_UNTESTED; 15 | } 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/killpg/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for the kill() function testing. 2 | 3 | Assertion Status 4 | 1 YES 5 | 2 YES 6 | 3 WON'T test, since behavior is undefined. 7 | 4 YES 8 | 5 YES 9 | 6 YES 10 | 7 WON'T test, since too risky to test without knowing what user id's are defined on each of the platforms that these tests may be run on. 11 | 8 YES 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_cond_signal/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_cond_signal function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 NO 7 | 4 YES 8 | 5 NO * When it specifies it 'may' fail and not 'shall' fail, 9 | it will always return PASS, but will return a 10 | PASS and print out a warning if it fails. 11 | NOTE: 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_once/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_once function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 NO 6 | 3 YES 7 | 4 YES 8 | 5 NO 9 | 6 NO ** Keeping in mind it 'may' fail and not 'shall' fail, 10 | so it will always return PASS, but will return a 11 | PASS and print out a warning if it fails. 12 | 13 | NOTE: 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigqueue/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for the sigqueue() function testing. 2 | 3 | Assertion Status 4 | 1 DONE 5 | 2 DONE 6 | 3 DONE 7 | 4 DONE 8 | 5 DONE 9 | 6 DONE 10 | 7 DONE 11 | 8 DONE 12 | 9 Test removed because macro SIGQUEUE_MAX is not mandatory, and system-wide resource limit is hard to get to. 13 | 10 DONE 14 | 11 DONE 15 | 12 DONE 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/aio_h/1-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2004, Bull SA. All rights reserved. 3 | * Created by: Laurent.Vivier@bull.net 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | */ 8 | 9 | /* test if aio.h exists and can be included */ 10 | 11 | #include 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/mqueue_h/10-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test for the existance and valid prototype 3 | of the mq_timedsend function as specified on 4 | line 9694 of the Base Definitions document 5 | */ 6 | 7 | #include 8 | #include "posixtest.h" 9 | #include 10 | 11 | int main() 12 | { 13 | fprintf(stderr, "Test not implemented!\n"); 14 | return PTS_UNTESTED; 15 | } 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/mqueue_h/3-1.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "posixtest.h" 3 | #include 4 | 5 | /* 6 | Test for the existance and valid prototype 7 | of the mq_getattr function as specified on 8 | line 9685 of the Base Definitions document 9 | */ 10 | 11 | int main() 12 | { 13 | fprintf(stderr, "Test not implemented!\n"); 14 | return PTS_UNTESTED; 15 | } 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/mqueue_h/8-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test for the existance and valid prototype 3 | of the mq_setattr function as specified on 4 | line 9690 of the Base Definitions document 5 | */ 6 | 7 | #include 8 | #include "posixtest.h" 9 | #include 10 | 11 | int main() 12 | { 13 | fprintf(stderr, "Test not implemented!\n"); 14 | return PTS_UNTESTED; 15 | } 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_cond_broadcast/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_cond_broadcast function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 NO 7 | 4 YES 8 | 5 NO * When it specifies it 'may' fail and not 'shall' fail, 9 | it will always return PASS, but will return a 10 | PASS and print out a warning if it fails. 11 | NOTE: 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_mutexattr_destroy/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_mutexattr_destroy function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES ** Keeping in mind it 'may' fail and not 'shall' fail, 8 | so it will always return PASS, but will return a 9 | PASS and print out a warning if it fails. 10 | Note: 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigismember/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for function sigemptyset(). 2 | 3 | Assertion Covered? 4 | 1 IMPLICITLY tested by assertions 3 and 4. 5 | 2 WON'T test because spec doesn't define behaviour of sigismember() function if neither of sigempyset() or sigfillset() is called. 6 | 3 YES 7 | 4 YES 8 | 5 YES 9 | 6 IMPLICITLY tested by assertion 5 10 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/timer_create/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the timer_create function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 YES 9 | 6 YES 10 | 7 YES 11 | 8 YES 12 | 9 YES 13 | 10 YES 14 | 11 YES 15 | 12 NO *Skipping CPT, TCT for now 16 | 13 YES 17 | 14 YES 18 | 15 YES 19 | 16 YES 20 | 17 NO *Skipping CPT, TCT for now 21 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/43-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | int sigqueue(pid_t, int, const union sigval); 4 | is declared. 5 | */ 6 | 7 | #include 8 | #include 9 | 10 | typedef int (*sigqueue_test)(pid_t, int, const union sigval); 11 | 12 | int dummyfcn (void) 13 | { 14 | sigqueue_test dummyvar; 15 | dummyvar = sigqueue; 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/mqueue_h/9-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test for the existance and valid prototype 3 | of the mq_timedreceive function as specified on 4 | line 9692 of the Base Definitions document 5 | */ 6 | 7 | #include 8 | #include "posixtest.h" 9 | #include 10 | 11 | int main() 12 | { 13 | fprintf(stderr, "Test not implemented!\n"); 14 | return PTS_UNTESTED; 15 | } 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/27-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | int pthread_sigmask(int, const sigset_t *, sigset_t *); 4 | is declared. 5 | */ 6 | 7 | #include 8 | 9 | typedef int (*pthread_sigmask_test)(int, const sigset_t *, sigset_t *); 10 | 11 | int dummyfcn (void) 12 | { 13 | pthread_sigmask_test dummyvar; 14 | dummyvar = pthread_sigmask; 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mlockall/2-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that the mlockall() checks that the flags argument is constructed from 4 | # the bitwise-inclusive OR of one or more of the folowing symbolic constants, 5 | # defined in sys/mman.h: 6 | # MCL_CURRENT 7 | # MCL_FUTURE 8 | # 9 | # This is tested implicitly via assertion 13. 10 | 11 | echo "Tested implicitly via assertion 13." 12 | exit 0 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_setstack/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_attr_setstack function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES (The test uses a Non-POSIX-Compliant API 6 | pthread_getattr_np to get attr in a created thread) 7 | 3 YES 8 | 4 YES 9 | 5 YES 10 | 6 YES 11 | 7 YES 12 | 8 NO 13 | 9 won't test 14 | 15 | Note: 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_join/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_join function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 NO ** Skipping for now. 8 | 5 YES 9 | 6 YES ** When it specifies 'may' fail and not 'shall' fail, 10 | it will always return PASS, but will return a 11 | PASS and print out a warning if it fails. 12 | NOTE: 13 | -------------------------------------------------------------------------------- /posixtestsuite/stress/mqueues/Makefile: -------------------------------------------------------------------------------- 1 | 2 | ifndef POSIX_DIR_LIB 3 | POSIX_DIR_LIB=/usr/lib 4 | endif 5 | 6 | INCLUDE = -I../../include 7 | LIB=-lmqueue 8 | 9 | CC=gcc 10 | CFLAGS=-Wall -O2 -g -I$(POSIX_DIR_INC) -L$(POSIX_DIR_LIB) -lpthread 11 | 12 | all: multi_send_rev_1.test multi_send_rev_2.test 13 | 14 | %.test : %.c 15 | $(CC) $(CFLAGS) $(INCLUDE) $< -o $@ $(LIB) 16 | clean: 17 | rm *.test 18 | 19 | 20 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_cond_destroy/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_cond_destroy function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 NO * When it specifies it 'may' fail and not 'shall' fail, 8 | it will always return PASS, but will return a 9 | PASS and print out a warning if it fails. 10 | * EBUSY is tested 11 | NOTE: 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/49-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | int sigwaitinfo(const sigset_t *restrict, siginfo_t *restrict); 4 | is declared. 5 | */ 6 | 7 | #include 8 | 9 | typedef int (*sigwaitinfo_test)(const sigset_t *restrict, siginfo_t *restrict); 10 | 11 | int dummyfcn (void) 12 | { 13 | sigwaitinfo_test dummyvar; 14 | dummyvar = sigwaitinfo; 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_setschedparam/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_attr_setschedparam function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES ** Keeping in mind it 'may' fail and not 'shall' fail, 7 | so it will always return PASS, but will return a 8 | PASS and print out a warning if it fails. 9 | ** EINTR NOT tested 10 | NOTE: 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sched_rr_get_interval/coverage.txt: -------------------------------------------------------------------------------- 1 | This document explains why certain assertions were not tested. 2 | 3 | Assertions not listed here should be covered by the tests in this directory. 4 | 5 | 6 | Assertions Tested ? Remarks 7 | 1 YES 8 | 2 YES 9 | 3 YES Assume that a pid is not reatributed immediately 10 | 4 YES 11 | 5 YES speculative test 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigignore/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for function sigignore(). 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 Won't test because there's no platform-agnostic way that I know of for checking if a child process became a zombie. 6 | 3 Won't test for now because assertion statement is unclear and hard to understand what they're trying to say. 7 | 4 YES 8 | 5 YES 9 | 6 YES 10 | 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_mutex_destroy/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_mutex_destroy function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 NO ** Keeping in mind it 'may' fail and not 'shall' fail, 8 | so it will always return PASS, but will return a 9 | PASS and print out a warning if it fails. 10 | ** EBUSY is tested 11 | 5 YES 12 | NOTE: 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/aio_h/1-2.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2004, Bull SA. All rights reserved. 3 | * Created by: Laurent.Vivier@bull.net 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | */ 8 | 9 | /* test if struct aiocb is defined in */ 10 | 11 | #include 12 | 13 | struct aiocb dummy; 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sem_wait/coverage.txt: -------------------------------------------------------------------------------- 1 | 2 | Will not test the following error values of the semaphores because it is 3 | unknown to me of how to return these values. 4 | 5 | -- EDEADLK: A deadlock condition was detected. 6 | 7 | -- assertion 6: not tested. 8 | 9 | -- assertion 9: is being covered in the other sem_wait cases. 10 | 11 | TODO: Help create a test case for the EDEADLK ERROR code. 12 | 13 | 14 | ~ 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_cond_init/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_cond_init function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 NO * Looking for a way to produce the error conditions 8 | * When it specifies it 'may' fail and not 'shall' fail, 9 | it will always return PASS, but will return a 10 | PASS and print out a warning if it fails. 11 | NOTE: 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/shm_unlink/coverage.txt: -------------------------------------------------------------------------------- 1 | This document explains why certain assertions were not tested. 2 | 3 | Assertions not listed here should be covered by the tests in this directory. 4 | 5 | 6 | Assertions Tested ? Remarks 7 | 1 YES 8 | 2 YES 9 | 3 YES 10 | 4 YES 11 | 5 YES 12 | 6 YES 13 | 7 YES 14 | 8 YES 15 | 9 YES 16 | 10 YES 17 | 11 YES 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/31-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | int sigaltstack(const stack_t *restrict, stack_t *restrict); 4 | is declared. 5 | 6 | Removed restrict keyword from typedef. 7 | */ 8 | 9 | #include 10 | 11 | typedef int (*sigaltstack_test)(const stack_t *, stack_t *); 12 | 13 | int dummyfcn (void) 14 | { 15 | sigaltstack_test dummyvar; 16 | dummyvar = sigaltstack; 17 | return 0; 18 | } 19 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/lio_listio/coverage.txt: -------------------------------------------------------------------------------- 1 | this file defines the coverage for the lio_listio() function testing. 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 YES 9 | 6 YES 10 | 7 YES 11 | 8 YES 12 | 9 YES 13 | 10 YES 14 | 11 YES 15 | 12 YES 16 | 13 YES 17 | 14 YES 18 | 15 YES 19 | 16 NO 20 | 17 NO 21 | 18 YES 22 | 19 NO 23 | 20 NO 24 | 21 NO 25 | 22 NO 26 | 23 NO 27 | 24 NO 28 | 25 NO 29 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mq_timedreceive/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the mq_timedreceive function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 NO - implementation-defined, won't test. 7 | 4 YES 8 | 5 YES 9 | 6 NO - won't test. 10 | 7 YES 11 | 8 YES 12 | 9 NO 13 | 10 YES 14 | 11 YES 15 | 12 YES 16 | 13 YES 17 | 14 YES 18 | 15 YES 19 | 16 YES 20 | 17 YES 21 | 18 YES 22 | 19 NO - won't test 23 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_condattr_destroy/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_condattr_destroy function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES ** Keeping in mind it 'may' fail and not 'shall' fail, 8 | so it will always return PASS, but will return a 9 | PASS and print out a warning if it fails. 10 | 11 | NOTE: 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_mutexattr_settype/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_mutexattr_settype function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 NO **Removed, since duplicate with assertion 8 | **in pthread_mutex_lock:4 and pthread_mutex_unlock:5 9 | 5 NO **Will not test because all behavior is undefined. 10 | 6 YES 11 | 7 YES 12 | 13 | NOTE: 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_testcancel/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | The function 4 | 5 | void pthread_testcancel(void); 6 | 7 | It will create a cancelation point in the calling thread. 8 | 9 | 10 | It will have no affect on the calling thread if cancelability is disabled. 11 | 12 | 13 | -------------------------------------------------------------------------------- /posixtestsuite/functional/timers/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 2 | # Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 3 | # This file is licensed under the GPL license. For the full content 4 | # of this license, see the COPYING file at the top level of this 5 | # source tree. 6 | # 7 | 8 | all: 9 | make -C clocks 10 | make -C timers 11 | 12 | clean : 13 | make -C clocks clean 14 | make -C timers clean 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/pthread_h/3-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: rolla.n.selbak REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test pthread_attr_t 9 | */ 10 | 11 | #include 12 | 13 | pthread_attr_t dummy; 14 | 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/pthread_h/3-6.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: rolla.n.selbak REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test pthread_key_t 9 | */ 10 | 11 | #include 12 | 13 | pthread_key_t dummy; 14 | 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/42-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | int sigprocmask(int, const sigset_t *restrict, sigset_t *restrict); 4 | is declared. 5 | Removed restrict keyword from typedef. 6 | */ 7 | 8 | #include 9 | 10 | typedef int (*sigprocmask_test)(int, const sigset_t *, sigset_t *); 11 | 12 | int dummyfcn (void) 13 | { 14 | sigprocmask_test dummyvar; 15 | dummyvar = sigprocmask; 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/time_h/7-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test that clock_t is defined. 9 | */ 10 | 11 | #include 12 | 13 | clock_t dummy; 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/time_h/7-2.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test that size_t is defined. 9 | */ 10 | 11 | #include 12 | 13 | size_t dummy; 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/time_h/7-3.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test that time_t is defined. 9 | */ 10 | 11 | #include 12 | 13 | time_t dummy; 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/time_h/7-5.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test that timer_t is defined. 9 | */ 10 | 11 | #include 12 | 13 | timer_t dummy; 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/pthread_h/3-13.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: rolla.n.selbak REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test pthread_t 9 | */ 10 | 11 | #include 12 | 13 | pthread_t dummy; 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/time_h/7-4.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test that clockid_t is defined. 9 | */ 10 | 11 | #include 12 | 13 | clockid_t dummy; 14 | -------------------------------------------------------------------------------- /posixtestsuite/stress/threads/fork/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 2 | # Created by: adam.li@intel.com 3 | # This file is licensed under the GPL license. For the full content 4 | # of this license, see the COPYING file at the top level of this 5 | # source tree. 6 | 7 | CFLAGS := -Wall -I../../../include -O2 8 | LDFLAGS := -lpthread -lrt -lm 9 | 10 | TARGETS := s-c1 11 | 12 | all: $(TARGETS) 13 | 14 | clean: 15 | rm -f $(TARGETS) 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/pthread_h/1-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: rolla.n.selbak REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test the header file pthread.h exists and can be included 9 | */ 10 | 11 | #include 12 | 13 | 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/pthread_h/3-2.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: rolla.n.selbak REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test pthread_barrier_t 9 | BAR 10 | */ 11 | 12 | #include 13 | 14 | pthread_barrier_t dummy; 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/pthread_h/3-4.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: rolla.n.selbak REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test pthread_cond_t 9 | */ 10 | 11 | #include 12 | 13 | pthread_cond_t dummy; 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/pthread_h/3-7.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: rolla.n.selbak REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test pthread_mutex_t 9 | */ 10 | 11 | #include 12 | 13 | pthread_mutex_t dummy; 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/pthread_h/3-9.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: rolla.n.selbak REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test pthread_once_t 9 | */ 10 | 11 | #include 12 | 13 | pthread_once_t dummy; 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/time_h/1-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test the existence of the time.h file and that it can be 9 | included. 10 | */ 11 | 12 | #include 13 | -------------------------------------------------------------------------------- /posixtestsuite/functional/threads/tools/watchdogtimer.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | PRIORITY=20 3 | # PINUM stands for the test cases number of pi test 4 | PINUM=6 5 | num=0 6 | chrt -p -f $PRIORITY $$ 7 | TIMEOUT=600 8 | echo "Start watchdogtimer script..." 9 | echo "wait 10 minutes, if pitest hangs, stop the case execution" 10 | while [ $num -lt $PINUM ] 11 | do 12 | sleep $TIMEOUT 13 | killall -9 -q pitest* 14 | echo "Timeout, kill pi test case" 15 | num=`expr $num + 1` 16 | done 17 | 18 | -------------------------------------------------------------------------------- /posixtestsuite/stress/threads/sem_init/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 2 | # Created by: adam.li@intel.com 3 | # This file is licensed under the GPL license. For the full content 4 | # of this license, see the COPYING file at the top level of this 5 | # source tree. 6 | 7 | CFLAGS := -Wall -I../../../include -O2 8 | LDFLAGS := -lpthread -lrt -lm 9 | 10 | TARGETS := s-c1 11 | 12 | all: $(TARGETS) 13 | 14 | clean: 15 | rm -f $(TARGETS) 16 | -------------------------------------------------------------------------------- /posixtestsuite/stress/threads/sem_open/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 2 | # Created by: adam.li@intel.com 3 | # This file is licensed under the GPL license. For the full content 4 | # of this license, see the COPYING file at the top level of this 5 | # source tree. 6 | 7 | CFLAGS := -Wall -I../../../include -O2 8 | LDFLAGS := -lpthread -lrt -lm 9 | 10 | TARGETS := s-c1 11 | 12 | all: $(TARGETS) 13 | 14 | clean: 15 | rm -f $(TARGETS) 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/pthread_h/3-10.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: rolla.n.selbak REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test pthread_rwlock_t 9 | */ 10 | 11 | #include 12 | 13 | pthread_rwlock_t dummy; 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/pthread_h/3-5.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: rolla.n.selbak REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test pthread_condattr_t 9 | */ 10 | 11 | #include 12 | 13 | pthread_condattr_t dummy; 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/sys/shm_h/coverage.txt: -------------------------------------------------------------------------------- 1 | 2 | This document explains why certain assertions were not tested. 3 | 4 | Assertions not listed here should be covered by the tests in this directory. 5 | 6 | 7 | Assertions Tested ? Remarks 8 | 1 YES 9 | 2 YES 10 | 3 YES 11 | 4 YES 12 | 5 YES 13 | 6 YES 14 | 7 YES 15 | 8 YES 16 | 9 YES 17 | 10 YES 18 | 11 YES 19 | 12 YES 20 | 21 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/timer_getoverrun/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for function timer_getoverrun(). 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 WON'T 7 | 4 YES 8 | 5 YES 9 | 10 | WON'T TEST 11 | 3-1 - This test does not appear to be possible to test in a reasonable 12 | amount of time (= a few minutes) due to the large size of 13 | DELAYTIMER_MAX. [Note to self: DELAYTIMER_MAX is defined in 14 | limits.h.] 15 | 16 | -------------------------------------------------------------------------------- /posixtestsuite/functional/threads/schedule/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 2 | # Created by: adam.li@intel.com 3 | # This file is licensed under the GPL license. For the full content 4 | # of this license, see the COPYING file at the top level of this 5 | # source tree. 6 | 7 | CFLAGS := -Wall -I../../../include -O2 8 | LDFLAGS := -lpthread -lrt 9 | 10 | TARGETS := 1-1 1-2 11 | 12 | all: $(TARGETS) 13 | 14 | clean: 15 | rm -f $(TARGETS) 16 | -------------------------------------------------------------------------------- /posixtestsuite/stress/threads/pthread_cancel/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 2 | # Created by: adam.li@intel.com 3 | # This file is licensed under the GPL license. For the full content 4 | # of this license, see the COPYING file at the top level of this 5 | # source tree. 6 | 7 | CFLAGS := -Wall -I../../../include -O2 8 | LDFLAGS := -lpthread -lrt 9 | 10 | TARGETS := stress 11 | 12 | all: $(TARGETS) 13 | 14 | clean: 15 | rm -f $(TARGETS) 16 | -------------------------------------------------------------------------------- /posixtestsuite/stress/threads/pthread_exit/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 2 | # Created by: adam.li@intel.com 3 | # This file is licensed under the GPL license. For the full content 4 | # of this license, see the COPYING file at the top level of this 5 | # source tree. 6 | 7 | CFLAGS := -Wall -I../../../include -O2 8 | LDFLAGS := -lpthread -lrt 9 | 10 | TARGETS := stress 11 | 12 | all: $(TARGETS) 13 | 14 | clean: 15 | rm -f $(TARGETS) 16 | -------------------------------------------------------------------------------- /posixtestsuite/stress/threads/pthread_kill/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 2 | # Created by: adam.li@intel.com 3 | # This file is licensed under the GPL license. For the full content 4 | # of this license, see the COPYING file at the top level of this 5 | # source tree. 6 | 7 | CFLAGS := -Wall -I../../../include -O2 8 | LDFLAGS := -lpthread -lrt 9 | 10 | TARGETS := stress 11 | 12 | all: $(TARGETS) 13 | 14 | clean: 15 | rm -f $(TARGETS) 16 | -------------------------------------------------------------------------------- /posixtestsuite/stress/threads/pthread_once/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 2 | # Created by: adam.li@intel.com 3 | # This file is licensed under the GPL license. For the full content 4 | # of this license, see the COPYING file at the top level of this 5 | # source tree. 6 | 7 | CFLAGS := -Wall -I../../../include -O2 8 | LDFLAGS := -lpthread -lrt 9 | 10 | TARGETS := stress 11 | 12 | all: $(TARGETS) 13 | 14 | clean: 15 | rm -f $(TARGETS) 16 | -------------------------------------------------------------------------------- /posixtestsuite/stress/threads/pthread_self/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 2 | # Created by: adam.li@intel.com 3 | # This file is licensed under the GPL license. For the full content 4 | # of this license, see the COPYING file at the top level of this 5 | # source tree. 6 | 7 | CFLAGS := -Wall -I../../../include -O2 8 | LDFLAGS := -lpthread -lrt 9 | 10 | TARGETS := stress 11 | 12 | all: $(TARGETS) 13 | 14 | clean: 15 | rm -f $(TARGETS) 16 | -------------------------------------------------------------------------------- /posixtestsuite/stress/threads/sem_getvalue/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 2 | # Created by: adam.li@intel.com 3 | # This file is licensed under the GPL license. For the full content 4 | # of this license, see the COPYING file at the top level of this 5 | # source tree. 6 | 7 | CFLAGS := -Wall -I../../../include -O2 8 | LDFLAGS := -lpthread -lrt 9 | 10 | TARGETS := stress 11 | 12 | all: $(TARGETS) 13 | 14 | clean: 15 | rm -f $(TARGETS) 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/pthread_h/3-11.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: rolla.n.selbak REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test pthread_rwlockattr_t 9 | */ 10 | 11 | #include 12 | 13 | pthread_rwlockattr_t dummy; 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/pthread_h/3-8.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: rolla.n.selbak REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test pthread_mutexattr_t 9 | */ 10 | 11 | #include 12 | 13 | pthread_mutexattr_t dummy; 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/difftime/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | The difftime ( ) function shall compute the difference between two calendar times 4 | (as returned by 5 | time( )): time1. time0. 6 | 7 | 8 | The difftime ( ) function shall return the difference expressed in seconds as a type double. 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_destroy/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_attr_destroy function: 2 | 3 | Assertion Tested? 4 | 1 YES *Fails on the implementation of threads that I'm working 5 | on. 6 | 2 YES 7 | 3 YES 8 | 9 | Note: pthread_attr_destroy leaves a lot up to the implementation of threads 10 | that you are testing on. For instance, on the implementation that I'm working 11 | on, pthread_attr_destroy() does nothing. 12 | -------------------------------------------------------------------------------- /posixtestsuite/stress/threads/pthread_cond_init/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 2 | # Created by: adam.li@intel.com 3 | # This file is licensed under the GPL license. For the full content 4 | # of this license, see the COPYING file at the top level of this 5 | # source tree. 6 | 7 | CFLAGS := -Wall -I../../../include -O2 8 | LDFLAGS := -lpthread -lrt 9 | 10 | TARGETS := s-c stress 11 | 12 | all: $(TARGETS) 13 | 14 | clean: 15 | rm -f $(TARGETS) 16 | -------------------------------------------------------------------------------- /posixtestsuite/stress/threads/pthread_getschedparam/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 2 | # Created by: adam.li@intel.com 3 | # This file is licensed under the GPL license. For the full content 4 | # of this license, see the COPYING file at the top level of this 5 | # source tree. 6 | 7 | CFLAGS := -Wall -I../../../include -O2 8 | LDFLAGS := -lpthread -lrt 9 | 10 | TARGETS := stress 11 | 12 | all: $(TARGETS) 13 | 14 | clean: 15 | rm -f $(TARGETS) 16 | -------------------------------------------------------------------------------- /posixtestsuite/stress/threads/pthread_mutex_trylock/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 2 | # Created by: adam.li@intel.com 3 | # This file is licensed under the GPL license. For the full content 4 | # of this license, see the COPYING file at the top level of this 5 | # source tree. 6 | 7 | CFLAGS := -Wall -I../../../include -O2 8 | LDFLAGS := -lpthread -lrt 9 | 10 | TARGETS := stress 11 | 12 | all: $(TARGETS) 13 | 14 | clean: 15 | rm -f $(TARGETS) 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/time_h/3-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test that NULL is defined 9 | */ 10 | 11 | #include 12 | 13 | #ifndef NULL 14 | #error NULL not defined 15 | #endif 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_setstackaddr/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_attr_setstackaddr function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES (The test uses a Non-POSIX-Compliant API 6 | pthread_getattr_np to get attr in a created thread) 7 | 3 YES 8 | 4 won't test 9 | 10 | Note: pthread_attr_setstackaddr is marked with __attribute_deprecated__ 11 | in glibc implementation, it will got compile warning. 12 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sched_get_priority_min/coverage.txt: -------------------------------------------------------------------------------- 1 | This document explains why certain assertions were not tested. 2 | 3 | Assertions not listed here should be covered by the tests in this directory. 4 | 5 | 6 | Assertions Tested ? Remarks 7 | 1 YES max and min priorities are taken from the system (AIX) 8 | only tested for SCHED_FIFO, SCHED_RR and SCHED_OTHER policy 9 | speculative for AIX (FIFO2, FIFO3, FIFO4) 10 | 2 YES 11 | 3 YES -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sched_setscheduler/8-1.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Test that the sched_setscheduler() function is considered successful when it 4 | # succeeds in setting the scheduling policy and scheduling parameters of the 5 | # process specified by pid to the values specified by policy and the structure 6 | # pointed to by param, respectively. 7 | # 8 | # This is tested implicitly via assertions 1 and 4. 9 | 10 | echo "Tested implicitly via assertions 1 and 4." 11 | exit 0 -------------------------------------------------------------------------------- /posixtestsuite/stress/threads/pthread_create/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 2 | # Created by: adam.li@intel.com 3 | # This file is licensed under the GPL license. For the full content 4 | # of this license, see the COPYING file at the top level of this 5 | # source tree. 6 | 7 | CFLAGS := -Wall -I../../../include -O2 8 | LDFLAGS := -lpthread -lrt 9 | 10 | TARGETS := s-c1 s-c2 stress 11 | 12 | all: $(TARGETS) 13 | 14 | clean: 15 | rm -f $(TARGETS) 16 | -------------------------------------------------------------------------------- /posixtestsuite/stress/threads/pthread_mutex_init/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 2 | # Created by: adam.li@intel.com 3 | # This file is licensed under the GPL license. For the full content 4 | # of this license, see the COPYING file at the top level of this 5 | # source tree. 6 | 7 | CFLAGS := -Wall -I../../../include -O2 8 | LDFLAGS := -lpthread -lrt 9 | 10 | TARGETS := s-c stress 11 | 12 | all: $(TARGETS) 13 | 14 | clean: 15 | rm -f $(TARGETS) 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/pthread_h/3-12.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: rolla.n.selbak REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test pthread_spinlock_t 9 | SPI 10 | */ 11 | 12 | #include 13 | 14 | pthread_spinlock_t dummy; 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/pthread_h/3-3.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: rolla.n.selbak REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test pthread_barrierattr_t 9 | BAR 10 | */ 11 | 12 | #include 13 | 14 | pthread_barrierattr_t dummy; 15 | 16 | 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/29-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the function: 3 | int sigaction(int, const struct sigaction *restrict, 4 | struct sigaction *restrict); 5 | is declared. 6 | Removed restrict keyword from typedef. 7 | */ 8 | 9 | #include 10 | 11 | typedef int (*sigaction_test)(int, const struct sigaction *, struct sigaction *); 12 | 13 | int dummyfcn (void) 14 | { 15 | sigaction_test dummyvar; 16 | dummyvar = sigaction; 17 | return 0; 18 | } 19 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/munlock/coverage.txt: -------------------------------------------------------------------------------- 1 | This document explains why certain assertions were not tested. 2 | 3 | Assertions not listed here should be covered by the tests in this directory. 4 | 5 | 6 | Assertions Tested ? Remarks 7 | 1 NO 8 | 2 YES May assertion 9 | 3 NO 10 | 4 NO 11 | 5 NO 12 | 6 NO Unspecified 13 | 7 YES 14 | 8 NO 15 | 9 YES 16 | 10 YES 17 | 11 YES May assertion 18 | 19 | -------------------------------------------------------------------------------- /posixtestsuite/stress/threads/pthread_mutex_lock/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 2 | # Created by: adam.li@intel.com 3 | # This file is licensed under the GPL license. For the full content 4 | # of this license, see the COPYING file at the top level of this 5 | # source tree. 6 | 7 | CFLAGS := -Wall -I../../../include -O2 8 | LDFLAGS := -lpthread -lrt 9 | 10 | TARGETS := s-c1 s-c2 stress 11 | 12 | all: $(TARGETS) 13 | 14 | clean: 15 | rm -f $(TARGETS) 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sighold/3-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2003, Intel Corporation. All rights reserved. 3 | # Created by: salwan.searty REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | # 9 | # Test various methods of adding invalid signals to sighold(). 10 | # 11 | 12 | conformance/interfaces/sighold/3-core-buildonly.test 1 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sighold/3-3.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2003, Intel Corporation. All rights reserved. 3 | # Created by: salwan.searty REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | # 9 | # Test various methods of passing invalid signals to sighold(). 10 | # 11 | 12 | conformance/interfaces/sighold/3-core-buildonly.test 3 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sighold/3-4.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2003, Intel Corporation. All rights reserved. 3 | # Created by: salwan.searty REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | # 9 | # Test various methods of passing invalid signals to sighold(). 10 | # 11 | 12 | conformance/interfaces/sighold/3-core-buildonly.test 4 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigrelse/3-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2003, Intel Corporation. All rights reserved. 3 | # Created by: salwan.searty REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | # 9 | # Test various methods of adding invalid signals to sigrelse(). 10 | # 11 | 12 | conformance/interfaces/sigrelse/3-core-buildonly.test 1 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigrelse/3-2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2003, Intel Corporation. All rights reserved. 3 | # Created by: salwan.searty REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | # 9 | # Test various methods of adding invalid signals to sigrelse(). 10 | # 11 | 12 | conformance/interfaces/sigrelse/3-core-buildonly.test 2 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigrelse/3-3.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2003, Intel Corporation. All rights reserved. 3 | # Created by: salwan.searty REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | # 9 | # Test various methods of adding invalid signals to sigrelse(). 10 | # 11 | 12 | conformance/interfaces/sigrelse/3-core-buildonly.test 3 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigrelse/3-4.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2003, Intel Corporation. All rights reserved. 3 | # Created by: salwan.searty REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | # 9 | # Test various methods of adding invalid signals to sigrelse(). 10 | # 11 | 12 | conformance/interfaces/sigrelse/3-core-buildonly.test 4 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sighold/3-2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2003, Intel Corporation. All rights reserved. 3 | # Created by: salwan.searty REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | 9 | # 10 | # Test various methods of passing invalid signals to sighold(). 11 | # 12 | 13 | conformance/interfaces/sighold/3-core-buildonly.test 2 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigignore/5-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2003, Intel Corporation. All rights reserved. 3 | # Created by: salwan.searty REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | # 9 | # Test various methods of passing invalid signals to sigignore(). 10 | # 11 | 12 | conformance/interfaces/sigignore/5-core-buildonly.test 1 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigignore/5-2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2003, Intel Corporation. All rights reserved. 3 | # Created by: salwan.searty REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | # 9 | # Test various methods of passing invalid signals to sigignore(). 10 | # 11 | 12 | conformance/interfaces/sigignore/5-core-buildonly.test 2 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigignore/5-3.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2003, Intel Corporation. All rights reserved. 3 | # Created by: salwan.searty REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | # 9 | # Test various methods of passing invalid signals to sigignore(). 10 | # 11 | 12 | conformance/interfaces/sigignore/5-core-buildonly.test 3 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigignore/5-4.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2003, Intel Corporation. All rights reserved. 3 | # Created by: salwan.searty REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | # 9 | # Test various methods of passing invalid signals to sigignore(). 10 | # 11 | 12 | conformance/interfaces/sigignore/5-core-buildonly.test 4 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/15-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test the definition of sigaction. 3 | */ 4 | 5 | #include 6 | 7 | struct sigaction this_type_should_exist, t; 8 | extern void signal_handler (int); 9 | sigset_t *set; 10 | int flags; 11 | extern void signal_action(int, siginfo_t *, void *); 12 | 13 | int dummyfcn (void) 14 | { 15 | t.sa_handler = signal_handler; 16 | set = &t.sa_mask; 17 | flags = t.sa_flags; 18 | t.sa_sigaction = signal_action; 19 | 20 | return 0; 21 | } 22 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_rwlock_init/4-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | 9 | # Test pthread_rwlock_destroy returns 0 on success. 10 | 11 | # This is tested implicitly via assertion 1. 12 | 13 | echo "Tested implicitly via assertion 1. See output for status" 14 | exit 0 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigaddset/4-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | # 9 | # Test various methods of adding invalid signals to sigaddset(). 10 | # 11 | 12 | conformance/interfaces/sigaddset/4-core-buildonly.test 1 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigaddset/4-3.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | # 9 | # Test various methods of adding invalid signals to sigaddset(). 10 | # 11 | 12 | conformance/interfaces/sigaddset/4-core-buildonly.test 3 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigaddset/4-4.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | # 9 | # Test various methods of adding invalid signals to sigaddset(). 10 | # 11 | 12 | conformance/interfaces/sigaddset/4-core-buildonly.test 4 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigprocmask/17-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2003, Intel Corporation. All rights reserved. 3 | # Created by: salwan.searty REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | # 9 | # Test various methods of passing invalid signals to sigignore(). 10 | # 11 | 12 | conformance/interfaces/sigprocmask/17-core-buildonly.test 1 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigprocmask/17-2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2003, Intel Corporation. All rights reserved. 3 | # Created by: salwan.searty REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | # 9 | # Test various methods of passing invalid signals to sigignore(). 10 | # 11 | 12 | conformance/interfaces/sigprocmask/17-core-buildonly.test 2 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigprocmask/17-3.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2003, Intel Corporation. All rights reserved. 3 | # Created by: salwan.searty REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | # 9 | # Test various methods of passing invalid signals to sigignore(). 10 | # 11 | 12 | conformance/interfaces/sigprocmask/17-core-buildonly.test 3 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigprocmask/17-4.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2003, Intel Corporation. All rights reserved. 3 | # Created by: salwan.searty REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | # 9 | # Test various methods of passing invalid signals to sigignore(). 10 | # 11 | 12 | conformance/interfaces/sigprocmask/17-core-buildonly.test 4 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/coverage.txt: -------------------------------------------------------------------------------- 1 | This document explains why certain assertions were not tested. 2 | 3 | Assertions not listed here should be covered by the tests in this directory. 4 | 5 | 6 through 12 - Did not test RTS assertions. 6 | 50 - This test case needs to be much larger. 7 | 8 | 9 | Other items I am currently investigating (as of 10/28/02): 10 | The assertions: 11 | 19 12 | 21 13 | 45 14 | fail on the system I am testing on. 15 | These appear to be valid header file failures. 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mq_open/coverage.txt: -------------------------------------------------------------------------------- 1 | This file defines the coverage for the mq_open() function. 2 | 3 | ASSERTION COVERED? 4 | 1 YES 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 YES 9 | 6 YES 10 | 7 YES 11 | 8 YES 12 | 9 YES 13 | 10 YES 14 | 11 YES 15 | 12 YES 16 | 13 YES 17 | 14 YES 18 | 15 YES 19 | 16 YES 20 | 17 YES 21 | 18 YES 22 | 19 YES 23 | 20 YES 24 | 21 YES 25 | 22 YES 26 | 23 YES 27 | 24 YES 28 | 25 YES 29 | 26 YES 30 | 27 YES 31 | 28 YES 32 | 29 YES 33 | 30 YES 34 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_rwlockattr_init/3-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | 9 | # Test pthread_rwlockattr_init returns 0 on success. 10 | 11 | # This is tested implicitly via assertion 1. 12 | 13 | echo "Tested implicitly via assertion 1. See output for status" 14 | exit 0 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigaddset/4-2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | 9 | # 10 | # Test various methods of adding invalid signals to sigaddset(). 11 | # 12 | 13 | conformance/interfaces/sigaddset/4-core-buildonly.test 2 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigdelset/4-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | 9 | # 10 | # Test various methods of removing invalid signals to sigaddset(). 11 | # 12 | 13 | conformance/interfaces/sigdelset/4-core-buildonly.test 1 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigdelset/4-2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | 9 | # 10 | # Test various methods of removing invalid signals to sigaddset(). 11 | # 12 | 13 | conformance/interfaces/sigdelset/4-core-buildonly.test 2 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigdelset/4-3.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | 9 | # 10 | # Test various methods of removing invalid signals to sigaddset(). 11 | # 12 | 13 | conformance/interfaces/sigdelset/4-core-buildonly.test 3 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigdelset/4-4.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | 9 | # 10 | # Test various methods of removing invalid signals to sigaddset(). 11 | # 12 | 13 | conformance/interfaces/sigdelset/4-core-buildonly.test 4 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/time_h/3-2.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test that CLOCKS_PER_SEC is defined 9 | */ 10 | 11 | #include 12 | 13 | #ifndef CLOCKS_PER_SEC 14 | #error CLOCKS_PER_SEC not defined 15 | #endif 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_rwlock_destroy/2-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | 9 | 10 | # Test pthread_rwlock_destroy returns 0 on success. 11 | 12 | # This is tested implicitly via assertion 1. 13 | 14 | echo "Tested implicitly via assertion 1. See output for status" 15 | exit 0 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_rwlock_tryrdlock/2-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | 9 | # Test pthread_rwlock_tryrdlock() returns 0 on success. 10 | 11 | # This is tested implicitly via assertion 1. 12 | 13 | echo "Tested implicitly via assertion 1. See output for status" 14 | exit 0 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_rwlock_trywrlock/2-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | 9 | # Test pthread_rwlock_trywrlock() returns 0 on success. 10 | 11 | # This is tested implicitly via assertion 1. 12 | 13 | echo "Tested implicitly via assertion 1. See output for status" 14 | exit 0 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_rwlockattr_destroy/3-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | 9 | # Test pthread_rwlockattr_destroy returns 0 on success. 10 | 11 | # This is tested implicitly via assertion 1. 12 | 13 | echo "Tested implicitly via assertion 1. See output for status" 14 | exit 0 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/47-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | @pt:RTS 3 | Test that the function: 4 | int sigtimedwait(const sigset_t *restrict, siginfo_t *restrict, 5 | const struct timespec *restrict); 6 | is declared. 7 | */ 8 | 9 | #include 10 | 11 | typedef int (*sigtimedwait_test)(const sigset_t *restrict, siginfo_t *restrict, 12 | const struct timespec *restrict); 13 | 14 | int dummyfcn (void) 15 | { 16 | sigtimedwait_test dummyvar; 17 | dummyvar = sigtimedwait; 18 | return 0; 19 | } 20 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_cond_timedwait/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_cond_timedwait function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 YES *2-2 and 2-3 seem to pass but hang on nptl 0.36 6 | 3 YES 7 | 4 YES * When it specifies it 'may' fail and not 'shall' fail, 8 | it will always return PASS, but will return a 9 | PASS and print out a warning if it fails. 10 | * Tested EINVAL when abs time spec is invalid 11 | * Tested EINTR 12 | NOTE: 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_equal/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | The function 4 | 5 | int pthread_equal(pthread_t t1, pthread_t t2) 6 | 7 | compares the thread ids t1 and t2. It returns a non-zero 8 | value if t1 and t2 are equal, othersise it returns zero. 9 | No errors are defined. 10 | 11 | 12 | The function must not return EINTR 13 | 14 | 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigismember/5-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: salwan.searty REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | # 9 | # Test various methods of checking for invalid signals using sigismember(). 10 | # 11 | 12 | conformance/interfaces/sigismember/5-core-buildonly.test 1 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigismember/5-2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: salwan.searty REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | # 9 | # Test various methods of checking for invalid signals using sigismember(). 10 | # 11 | 12 | conformance/interfaces/sigismember/5-core-buildonly.test 2 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigismember/5-3.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: salwan.searty REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | # 9 | # Test various methods of checking for invalid signals using sigismember(). 10 | # 11 | 12 | conformance/interfaces/sigismember/5-core-buildonly.test 3 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigismember/5-4.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: salwan.searty REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | # 9 | # Test various methods of checking for invalid signals using sigismember(). 10 | # 11 | 12 | conformance/interfaces/sigismember/5-core-buildonly.test 4 13 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mlock/coverage.txt: -------------------------------------------------------------------------------- 1 | This document explains why certain assertions were not tested. 2 | 3 | Assertions not listed here should be covered by the tests in this directory. 4 | 5 | 6 | Assertions Tested ? Remarks 7 | 1 NO 8 | 2 YES May assertion 9 | 3 NO 10 | 4 YES 11 | 5 YES 12 | 6 NO 13 | 7 YES 14 | 8 YES 15 | 9 NO 16 | 10 YES May assertion 17 | 11 NO May assertion 18 | 12 YES May assertion 19 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_create/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_create function: 2 | 3 | Assertion Tested? 4 | 1 YES - Also, need to test 'attr' values. 5 | 2 YES 6 | 3 YES 7 | 4 YES 8 | 5 YES 9 | 6 NO - Skipping. 10 | 7 NO - Skipping. 11 | 8 YES 12 | 9 NO - Skipping. (Floating point environment?) 13 | 10 YES - Peculiar behavior of passing the test and then freezing on the 14 | linuxthreads implementation. 15 | 11 YES 16 | 12 YES 17 | 13 YES 18 | 19 | Note: 20 | -------------------------------------------------------------------------------- /posixtestsuite/stress/mqueues/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Test whether message queue can work correctly under lots of usage. 4 | Many threads sending/receiving on different message queues. 5 | 6 | 7 | Test whether message queue can work correctly under lots of usage. 8 | Many threads sending/receiving on the same message queue. 9 | 10 | 11 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/time_h/6-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | @pt:TMR 9 | Test that CLOCK_REALTIME is defined 10 | */ 11 | 12 | #include 13 | 14 | #ifndef CLOCK_REALTIME 15 | #error CLOCK_REALTIME not defined 16 | #endif 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/time_h/6-2.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | @pt:TMR 9 | Test that TIMER_ABSTIME is defined 10 | */ 11 | 12 | #include 13 | 14 | #ifndef TIMER_ABSTIME 15 | #error TIMER_ABSTIME not defined 16 | #endif 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/time_h/35-2.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test that timezone is declared. 9 | */ 10 | 11 | #include 12 | 13 | int dummyfcn (void) 14 | { 15 | long dummy; 16 | 17 | dummy = timezone; 18 | return 0; 19 | } 20 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/difftime/2-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | 9 | #The difftime ( ) function shall return the difference expressed in seconds as a type double. 10 | 11 | # This is tested implicitly via assertion 1. 12 | 13 | echo "Tested implicitly via assertion 1. See output for status" 14 | exit 0 15 | -------------------------------------------------------------------------------- /posixtestsuite/include/posixtest.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | */ 8 | 9 | /* 10 | * return codes 11 | */ 12 | #define PTS_PASS 0 13 | #define PTS_FAIL 1 14 | #define PTS_UNRESOLVED 2 15 | #define PTS_UNSUPPORTED 4 16 | #define PTS_UNTESTED 5 17 | 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mq_getattr/5-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2003, Intel Corporation. All rights reserved. 3 | # Created by: crystal.xiong REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | # mq_getattr() return 0 on success. 9 | 10 | # This is tested implicitly via assertion 2,3,4. 11 | 12 | echo "Tested implicitly via assertion 2,3,4. See output for status" 13 | exit 0 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mq_unlink/3-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2003, Intel Corporation. All rights reserved. 3 | # Created by: crystal.xiong REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | 9 | # Test mq_unlink returns 0 on success. 10 | 11 | # This is tested implicitly via assertion 1. 12 | 13 | echo "Tested implicitly via assertion 1. See output for status" 14 | exit 0 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_getstack/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | The pthread_attr_getstack() shall get the thread creation stack attributes 4 | stackaddr and stacksize in the attr ojbect. 5 | 6 | 7 | 8 | If success, it returns zero. 9 | 10 | 11 | 12 | Shall not return an error code of [EINTR] 13 | 14 | 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_getstacksize/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | The pthread_attr_getstacksize() shall get the thread creation stacksize 4 | attributes stacksize in the attr ojbect. 5 | 6 | 7 | 8 | If success, it returns zero. 9 | 10 | 11 | 12 | Shall not return an error code of [EINTR] 13 | 14 | 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/raise/coverage.txt: -------------------------------------------------------------------------------- 1 | The current coverage of this suite is limited to testing raise() on processes. 2 | 3 | The threads items that could be added later are: 4 | 5 | - Test assertion 1 for threads. 6 | - Test assertion 3. 7 | This document defines the coverage for function raise(). 8 | 9 | Assertion Covered? 10 | 1 YES, only covering processes, not threads 11 | 2 YES 12 | 3 WON'T test for now since it is specific to threads 13 | 4 YES 14 | 5 IMPLICITLY tested by testing assertion 1 15 | 6 YES 16 | 7 YES 17 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_cleanup_pop/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | The function 4 | 5 | void pthread_cleanup_pop(int execute); 6 | 7 | Shall remove the routine at the top of the calling thread's cancelation cleanup stack and 8 | optionally invoke it (if execute is non-zero). 9 | 10 | 11 | 12 | 13 | It will not return a value, or an error code of [EINTR] 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /posixtestsuite/functional/threads/condvar/Makefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 2 | # Created by: adam.li@intel.com 3 | # This file is licensed under the GPL license. For the full content 4 | # of this license, see the COPYING file at the top level of this 5 | # source tree. 6 | 7 | CFLAGS := -Wall -I../../../include -O2 8 | LDFLAGS := -lpthread -lrt 9 | 10 | include /opt/libc/Makefile.inc 11 | 12 | TARGETS := pthread_cond_wait_1 pthread_cond_wait_2 13 | 14 | all: $(TARGETS) 15 | 16 | clean: 17 | rm -f $(TARGETS) 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/time_h/35-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | @pt:XSI 9 | Test that daylight is declared. 10 | */ 11 | 12 | #include 13 | 14 | int dummyfcn (void) 15 | { 16 | int dummy; 17 | 18 | dummy = daylight; 19 | return 0; 20 | } 21 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/time_h/6-3.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | @pt:TMR 9 | @pt:MON 10 | Test that CLOCK_MONOTONIC is defined 11 | */ 12 | 13 | #include 14 | 15 | #ifndef CLOCK_MONOTONIC 16 | #error CLOCK_MONOTONIC not defined 17 | #endif 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/clock_gettime/coverage.txt: -------------------------------------------------------------------------------- 1 | This file lists the coverage for all assertions: 2 | 3 | Assertion Complete? 4 | 1 YES 5 | 2 YES 6 | 3 YES* 7 | 4 NO - process clocks not part of implementation under test 8 | 5 NO - process clocks not part of implementation under test 9 | 6 YES 10 | 7 YES 11 | 8 YES 12 | 13 | *Note: To run against current implementation, I have to add in a line: 14 | #include "/usr/src/linux/Documentation/high-res-timers/lib/posix_time.h" 15 | for the definition of CLOCK_MONOTONIC to be included. 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_getdetachstate/assertions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | The function 4 | 5 | int pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate) 6 | 7 | will get the detachstate attribute in the 'attr' object. The detach state 8 | can be either PTHREAD_CREATE_DETACHED or PTHEAD_CREATE_JOINABLE. 9 | 10 | 11 | If success, it returns 0. 12 | 13 | 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/timer_delete/3-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | # Test that timer_delete() returns 0 on success. 9 | # 10 | # Tested implicitly via assertion 1. 11 | 12 | echo "Tested implicitly via assertion 1. See output for status." 13 | exit 0 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/timer_delete/4-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | # Test that timer_delete() returns -1 on failure. 9 | # 10 | # Tested implicitly via assertion 5. 11 | 12 | echo "Tested implicitly via assertion 5. See output for status." 13 | exit 0 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/timer_gettime/4-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | # Test that timer_gettime() returns 0 on success. 9 | # 10 | # Tested implicitly via assertion 1. 11 | 12 | echo "Tested implicitly via assertion 1. See output for status." 13 | exit 0 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/timer_gettime/5-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | # Test that timer_gettime() returns -1 on failure. 9 | # 10 | # Tested implicitly via assertion 6. 11 | 12 | echo "Tested implicitly via assertion 6. See output for status." 13 | exit 0 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/timer_settime/10-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | # Test that timer_settime() returns 0 on success. 9 | # 10 | # Tested implicitly via assertion 1. 11 | 12 | echo "Tested implicitly via assertion 1. See output for status." 13 | exit 0 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/clock_gettime/6-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | 9 | # Test that clock_gettime() returns 0 on success. 10 | # This is tested implicitly via assertion 1. 11 | 12 | echo "Tested implicitly via assertion 1. See output for status." 13 | exit 0 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_mutexattr_init/coverage.txt: -------------------------------------------------------------------------------- 1 | This document defines the coverage for the pthread_mutexattr_init function: 2 | 3 | Assertion Tested? 4 | 1 YES 5 | 2 NO *Looking for indicators to judge if initialized mutexes 6 | are affected. The prioceiling or protocol attributes may 7 | be relied on, but they belong to REALTIME_THREADS scope, 8 | which is low priority in the schedule. 9 | 3 YES 10 | 4 NO *Looking for a way to use up the memory without screwing 11 | up the machine. 12 | 13 | Note: 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_spin_trylock/3-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | #The pthread_spin_trylock( ) function shall fail if: 9 | #[EBUSY] A thread currently holds the lock. 10 | 11 | 12 | # This is tested implicitly via assertion 1. 13 | 14 | echo "Tested implicitly via assertion 1. See output for status" 15 | exit 0 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sigaddset/boundarytests.txt: -------------------------------------------------------------------------------- 1 | The following values will be used for boundary testing: 2 | 3 | Note: These numbers are not magical just the ones a gcc compiler gave on 4 | a certain compilation of a test program. 5 | 6 | Potentially the MAX+1/MIN-1 values are deterministic. The others are just 7 | empirical examples. 8 | 9 | To simulate: Use: 10 | INT32_MAX+1 -2147483647 (gcc compiler gave -2147483648) 11 | INT32_MIN-1 2147483647 12 | unassigned val -1073743192 13 | unassigned val 1075002478 14 | 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/timer_create/13-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | 9 | # Test timer_create returns 0 on success. 10 | 11 | # This is tested implicitly via assertion 1. 12 | 13 | echo "Tested implicitly via assertion 1. See output for status" 14 | exit 0 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/timer_settime/11-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | # Test that timer_settime() returns -1 on failure. 9 | # 10 | # Tested implicitly via assertion 12. 11 | 12 | echo "Tested implicitly via assertion 12. See output for status." 13 | exit 0 14 | -------------------------------------------------------------------------------- /test-src/yield_single.c: -------------------------------------------------------------------------------- 1 | #define _GNU_SOURCE 2 | #include 3 | #include 4 | #include 5 | 6 | /* 7 | BEGIN_TEST_SPEC 8 | ["1", "2"] 9 | END_TEST_SPEC 10 | */ 11 | 12 | static int val = 0; 13 | 14 | void* incr(void* arg) { 15 | int v; 16 | 17 | v = val; 18 | 19 | pthread_yield(); 20 | 21 | val = v + 1; 22 | 23 | return NULL; 24 | } 25 | 26 | int main() { 27 | pthread_t a; 28 | pthread_create(&a, NULL, incr, NULL); 29 | incr(NULL); 30 | pthread_join(a, NULL); 31 | printf("%d", val); 32 | 33 | return 0; 34 | } -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/pthread_h/5-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: rolla.n.selbak REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test this function is defined: 9 | 10 | void pthread_exit(void *); 11 | */ 12 | 13 | #include 14 | 15 | void dummy_func () 16 | { 17 | pthread_exit(NULL); 18 | return; 19 | } 20 | 21 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/clock_getres/4-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | 9 | # Test that clock_getres() returns 0 on success. 10 | # 11 | # This is tested implicitly via assertion 1. 12 | 13 | echo "Tested implicitly via assertion 1. See output for status." 14 | exit 0 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/clock_settime/15-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | 9 | # Test that clock_settime() returns 0 on success. 10 | # 11 | # This is tested implicitly via assertion 1. 12 | 13 | echo "Tested implicitly via assertion 1. See output for status." 14 | exit 0 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/munmap/7-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | # Upon successful completion, munmap( ) shall return 0; 9 | # otherwise, it shall return .1 and set errno to indicate the error. 10 | 11 | # This is tested implicitly via assertion 1. 12 | 13 | echo "Tested implicitly via assertion 1. See output for status" 14 | exit 0 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/sched_getscheduler/coverage.txt: -------------------------------------------------------------------------------- 1 | This document explains why certain assertions were not tested. 2 | 3 | Assertions not listed here should be covered by the tests in this directory. 4 | 5 | 6 | Assertions Tested ? Remarks 7 | 1 YES 8 | 2 YES Behavior is unspecified 9 | 3 YES Can not test the implementation defined policies 10 | 4 YES Don't test that the result is right. 11 | 5 YES Assume that a pid is not reatributed immediately 12 | 6 YES 13 | 7 YES 14 | 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/timer_getoverrun/5-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | # Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | # 8 | # Test that timer_getoverrun() returns -1 on failure. 9 | # 10 | # This is tested implicitly via assertion 6. 11 | 12 | echo "Tested implicitly via assertion 6. Sett output for status." 13 | exit 0 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/signal_h/16-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | Test that the constants below are supported. 3 | */ 4 | 5 | #include 6 | 7 | int dummy1 = SA_NOCLDSTOP; 8 | int dummy2 = SIG_BLOCK; 9 | int dummy3 = SIG_UNBLOCK; 10 | int dummy4 = SIG_SETMASK; 11 | int dummy5 = SA_ONSTACK; 12 | int dummy6 = SA_RESETHAND; 13 | int dummy7 = SA_RESTART; 14 | int dummy8 = SA_SIGINFO; 15 | int dummy9 = SA_NOCLDWAIT; 16 | int dummy10 = SA_NODEFER; 17 | int dummy11 = SS_ONSTACK; 18 | int dummy12 = SS_DISABLE; 19 | int dummy13 = MINSIGSTKSZ; 20 | int dummy14 = SIGSTKSZ; 21 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/sys/shm_h/1-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * This program is free software; you can redistribute it and/or modify 3 | * it under the terms of the GNU General Public License version 2. 4 | * 5 | * This program is distributed in the hope that it will be useful, 6 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 7 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 8 | * GNU General Public License for more details. 9 | * 10 | * Test that the sys/shm.h header file exists. 11 | */ 12 | 13 | #include 14 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/mq_notify/6-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright (c) 2003, Intel Corporation. All rights reserved. 3 | # Created by: crystal.xiong REMOVE-THIS AT intel DOT com 4 | # This file is licensed under the GPL license. For the full content 5 | # of this license, see the COPYING file at the top level of this 6 | # source tree. 7 | 8 | 9 | # Test if mq_notify is success, mq_notify will return a value of 0. 10 | 11 | # This is tested implicitly via assertion 1. 12 | 13 | echo "Tested implicitly via assertion 1. See output for status" 14 | exit 0 15 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_getscope/2-1.sh: -------------------------------------------------------------------------------- 1 | 2 | #!/bin/sh 3 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 4 | # Created by: crystal.xiong REMOVE-THIS AT intel DOT com 5 | # This file is licensed under the GPL license. For the full content 6 | # of this license, see the COPYING file at the top level of this 7 | # source tree. 8 | 9 | 10 | # Test pthread_attr_getscope returns 0 on success. 11 | 12 | # This is tested implicitly via assertion 1. 13 | 14 | echo "Tested implicitly via assertion 1. See output for status" 15 | exit 0 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_getstack/2-1.sh: -------------------------------------------------------------------------------- 1 | 2 | #!/bin/sh 3 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 4 | # Created by: crystal.xiong REMOVE-THIS AT intel DOT com 5 | # This file is licensed under the GPL license. For the full content 6 | # of this license, see the COPYING file at the top level of this 7 | # source tree. 8 | 9 | 10 | # Test pthread_attr_getstack returns 0 on success. 11 | 12 | # This is tested implicitly via assertion 1. 13 | 14 | echo "Tested implicitly via assertion 1. See output for status" 15 | exit 0 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_setscope/3-1.sh: -------------------------------------------------------------------------------- 1 | 2 | #!/bin/sh 3 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 4 | # Created by: crystal.xiong REMOVE-THIS AT intel DOT com 5 | # This file is licensed under the GPL license. For the full content 6 | # of this license, see the COPYING file at the top level of this 7 | # source tree. 8 | 9 | 10 | # Test pthread_attr_setscope returns 0 on success. 11 | 12 | # This is tested implicitly via assertion 1. 13 | 14 | echo "Tested implicitly via assertion 1. See output for status" 15 | exit 0 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_setstack/3-1.sh: -------------------------------------------------------------------------------- 1 | 2 | #!/bin/sh 3 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 4 | # Created by: crystal.xiong REMOVE-THIS AT intel DOT com 5 | # This file is licensed under the GPL license. For the full content 6 | # of this license, see the COPYING file at the top level of this 7 | # source tree. 8 | 9 | 10 | # Test pthread_attr_setstack returns 0 on success. 11 | 12 | # This is tested implicitly via assertion 1. 13 | 14 | echo "Tested implicitly via assertion 1. See output for status" 15 | exit 0 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_attr_setstack/5-1.sh: -------------------------------------------------------------------------------- 1 | 2 | #!/bin/sh 3 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 4 | # Created by: crystal.xiong REMOVE-THIS AT intel DOT com 5 | # This file is licensed under the GPL license. For the full content 6 | # of this license, see the COPYING file at the top level of this 7 | # source tree. 8 | 9 | 10 | # Test pthread_attr_setstack returns 0 on success. 11 | 12 | # This is tested implicitly via assertion 1. 13 | 14 | echo "Tested implicitly via assertion 1. See output for status" 15 | exit 0 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_getcpuclockid/2-1.sh: -------------------------------------------------------------------------------- 1 | 2 | #!/bin/sh 3 | # Copyright (c) 2004, Intel Corporation. All rights reserved. 4 | # Created by: crystal.xiong REMOVE-THIS AT intel DOT com 5 | # This file is licensed under the GPL license. For the full content 6 | # of this license, see the COPYING file at the top level of this 7 | # source tree. 8 | 9 | 10 | # Test pthread_getcpuclockid returns 0 on success. 11 | 12 | # This is tested implicitly via assertion 1. 13 | 14 | echo "Tested implicitly via assertion 1. See output for status" 15 | exit 0 16 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/pthread_once/4-1.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: rolla.n.selbak REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | Test pthread_once() 9 | 10 | *The constant PTHREAD_ONCE_INIT is defined in the pthread.h header. 11 | */ 12 | 13 | #include 14 | 15 | pthread_once_t dummy = PTHREAD_ONCE_INIT; 16 | 17 | 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/time_h/3-3.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | @pt:TMR 9 | @pt:CPT 10 | Test that CLOCK_PROCESS_CPUTIME_ID is defined 11 | */ 12 | 13 | #include 14 | 15 | #ifndef CLOCK_PROCESS_CPUTIME_ID 16 | #error CLOCK_PROCESS_CPUTIME_ID not defined 17 | #endif 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/definitions/time_h/3-4.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2002, Intel Corporation. All rights reserved. 3 | * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com 4 | * This file is licensed under the GPL license. For the full content 5 | * of this license, see the COPYING file at the top level of this 6 | * source tree. 7 | 8 | @pt:TMR 9 | @pt:TCT 10 | Test that CLOCK_THREAD_CPUTIME_ID is defined 11 | */ 12 | 13 | #include 14 | 15 | #ifndef CLOCK_THREAD_CPUTIME_ID 16 | #error CLOCK_THREAD_CPUTIME_ID not defined 17 | #endif 18 | -------------------------------------------------------------------------------- /posixtestsuite/conformance/interfaces/aio_cancel/coverage.txt: -------------------------------------------------------------------------------- 1 | this file defines the coverage for the aio_cancel() function testing. 2 | 3 | Assertion Covered? 4 | 1 YES 5 | 2 YES 6 | 3 YES * 7 | 4 YES * 8 | 5 YES + 9 | 6 YES * 10 | 7 YES * 11 | 8 YES 12 | 9 YES 13 | 10 YES 14 | 15 | * can be unresolved, because: 16 | 17 | - cancelable operations are implementation specific 18 | - we have no way to be sure we try to cancel an operation that is not 19 | already done or is in progress. 20 | 21 | + can be unresolved, because we must have at least one not canceled. 22 | --------------------------------------------------------------------------------