1 | *** POSIX TEST 10 *** |
---|
2 | Init: pthread_condattr_init |
---|
3 | Init: pthread_condattr_init - EINVAL (attribute invalid) |
---|
4 | Init: pthread_condattr_destroy |
---|
5 | Init: pthread_condattr_destroy - EINVAL (attribute invalid) |
---|
6 | Init: pthread_condattr_init |
---|
7 | Init: pthread_condattr_setpshared - PTHREAD_PROCESS_SHARED |
---|
8 | Init: pthread_condattr_setpshared - PTHREAD_PROCESS_PRIVATE |
---|
9 | Init: pthread_condattr_setpshared - EINVAL (attribute invalid) |
---|
10 | Init: pthread_condattr_setpshared - EINVAL (pshared invalid) |
---|
11 | Init: pthread_condattr_getpshared - 0 |
---|
12 | Init: pthread_condattr_getpshared - EINVAL (attribute invalid) |
---|
13 | Init: pthread_cond_init - NULL attr |
---|
14 | Init: pthread_cond_init - EINVAL (attr not initialized) |
---|
15 | Init: pthread_cond_init - ENOMEM (too many conds) |
---|
16 | Init: pthread_cond_destroy |
---|
17 | Init: pthread_cond_destroy - EINVAL (cond invalid) |
---|
18 | Init: pthread_cond_init - attr |
---|
19 | |
---|
20 | Init: sleep to switch to Task_1 |
---|
21 | Task_1: ID is 0x0c010002 |
---|
22 | Task_1: pthread_cond_wait |
---|
23 | Init: pthread_cond_destroy - EBUSY (task1 waiting) |
---|
24 | Init: pthread_cond_signal |
---|
25 | |
---|
26 | Init: sleep - switch to Task_1 and Task_2 |
---|
27 | Task_1: back from pthread_cond_wait release mutex |
---|
28 | Task_1: pthread_cond_wait |
---|
29 | Task_2: ID is 0x0c010003 |
---|
30 | Task_2: pthread_cond_wait |
---|
31 | Init: pthread_cond_broadcast |
---|
32 | Init: sleep - switch to Task_1 |
---|
33 | Task_1: back from pthread_cond_wait release mutex |
---|
34 | Task_1: task exit |
---|
35 | Task_2: back from pthread_cond_wait release mutex |
---|
36 | Task_2: task exit |
---|
37 | Init: pthread_cond_timedwait for 3 seconds |
---|
38 | Init: pthread_cond_timedwait - ETIMEDOUT - (mutex not acquired) |
---|
39 | |
---|
40 | Init: pthread_cond_signal - EINVAL (cond invalid) |
---|
41 | Init: pthread_cond_broadcast - EINVAL (cond invalid) |
---|
42 | Init: pthread_cond_wait - EINVAL (cond invalid) |
---|
43 | Init: pthread_cond_timedwait - EINVAL (cond invalid) |
---|
44 | Init: pthread_cond_wait - EINVAL (mutex invalid) |
---|
45 | Init: pthread_cond_timedwait - EINVAL (mutex invalid) |
---|
46 | Init: pthread_cond_timedwait - EINVAL (abstime NULL) |
---|
47 | Init: pthread_cond_timedwait - EINVAL (abstime->tv_sec invalid) |
---|
48 | Init: pthread_cond_timedwait - EINVAL (abstime->tv_nsec invalid) |
---|
49 | Init: pthread_cond_timedwait - EINVAL (abstime->tv_nsec to large) |
---|
50 | Init: pthread_cond_wait - EINVAL (mutex not locked before call) |
---|
51 | Init: pthread_cond_timedwait - EINVAL (mutex not locked before call) |
---|
52 | |
---|
53 | Init: sleep - switch to Task_3 |
---|
54 | Task_3: ID is 0x0c010004 |
---|
55 | Task_3: pthread_cond_wait |
---|
56 | Init: pthread_cond_signal |
---|
57 | Init: sleep - switch to Task_3 |
---|
58 | Task_3: pthread_cond_wait - EINVAL (mutex not locked after signal) |
---|
59 | Task_3: task exit |
---|
60 | *** END OF POSIX TEST 10 *** |
---|