source: rtems/testsuites/psxtests/psx10/psx10.scn

Last change on this file was 5222488, checked in by Sebastian Huber <sebastian.huber@…>, on Sep 26, 2017 at 5:49:17 AM

posix: Implement self-contained POSIX condvar

POSIX condition variables are now available in all configurations and no
longer depend on --enable-posix.

Update #2514.
Update #3113.

  • Property mode set to 100644
File size: 2.4 KB
Line 
1*** BEGIN OF TEST PSX 10 ***
2Init: pthread_condattr_init
3Init: pthread_condattr_init - EINVAL (attribute invalid)
4Init: pthread_condattr_destroy
5Init: pthread_condattr_destroy - EINVAL (attribute invalid)
6Init: pthread_condattr_init
7Init: pthread_condattr_setpshared - PTHREAD_PROCESS_SHARED
8Init: pthread_condattr_setpshared - PTHREAD_PROCESS_PRIVATE
9Init: pthread_condattr_setpshared - EINVAL (attribute invalid)
10Init: pthread_condattr_setpshared - EINVAL (pshared invalid)
11Init: pthread_condattr_getpshared - 0
12Init: pthread_condattr_getpshared - EINVAL (attribute invalid)
13Init: pthread_cond_init - NULL attr
14Init: pthread_cond_init - EINVAL (attr not initialized)
15Init: pthread_cond_destroy - EINVAL (cond invalid)
16Init: pthread_cond_init - EINVAL (invalid pshared)
17Init: pthread_condattr_setpshared - PTHREAD_PROCESS_SHARED
18Init: pthread_cond_init - OK
19Init: pthread_cond_destroy - OK
20Init: pthread_cond_init - attr
21
22Init: sleep to switch to Task_1
23Task_1: ID is 0x0b010002
24Task_1: pthread_cond_wait
25Init: pthread_cond_destroy - EBUSY (task1 waiting)
26Init: pthread_cond_signal
27
28Init: sleep - switch to Task_1 and Task_2
29Task_1: back from pthread_cond_wait release mutex
30Task_1: pthread_cond_wait
31Task_2: ID is 0x0b010003
32Task_2: pthread_cond_wait
33Init: pthread_cond_broadcast
34Init: sleep - switch to Task_1
35Task_1: back from pthread_cond_wait release mutex
36Task_1: task exit
37Task_2: back from pthread_cond_wait release mutex
38Task_2: task exit
39Init: pthread_cond_timedwait for 3 seconds
40Init: pthread_cond_timedwait - ETIMEDOUT - (mutex not acquired)
41
42Init: pthread_cond_signal - EINVAL (cond invalid)
43Init: pthread_cond_broadcast - EINVAL (cond invalid)
44Init: pthread_cond_wait - EINVAL (cond invalid)
45Init: pthread_cond_timedwait - EINVAL (cond invalid)
46Init: pthread_cond_wait - EINVAL (mutex invalid)
47Init: pthread_cond_timedwait - EINVAL (mutex invalid)
48Init: pthread_cond_timedwait - EINVAL (abstime NULL)
49Init: pthread_cond_timedwait - ETIMEDOUT (abstime->tv_sec < current time)
50Init: pthread_cond_timedwait - ETIMEDOUT (abstime->tv_nsec < current time)
51Init: pthread_cond_wait - EINVAL (mutex not locked before call)
52Init: pthread_cond_timedwait - EINVAL (mutex not locked before call)
53
54Init: sleep - switch to Task_3
55Task_3: ID is 0x0b010004
56Task_3: pthread_cond_wait
57Init: pthread_cond_signal
58Init: sleep - switch to Task_3
59Task_3: pthread_cond_wait - EINVAL (mutex not locked after signal)
60Task_3: task exit
61*** END OF TEST PSX 10 ***
Note: See TracBrowser for help on using the repository browser.