1 | *** POSIX TEST 5 *** |
---|
2 | Init's ID is 0x0b010001 |
---|
3 | Init: pthread_mutexattr_init - EINVAL (NULL attr) |
---|
4 | Init: pthread_mutexattr_init - SUCCESSFUL |
---|
5 | Init: mutex protocol is (0) -- PTHREAD_PRIO_NONE |
---|
6 | Init: mutex priority ceiling is 254 |
---|
7 | Init: mutex process shared is (0) -- PTHREAD_PROCESS_PRIVATE |
---|
8 | Init: pthread_mutexattr_destroy - SUCCESSFUL |
---|
9 | Init: pthread_mutexattr_destroy - EINVAL (NULL attr) |
---|
10 | Init: pthread_mutexattr_destroy - EINVAL (not initialized) |
---|
11 | |
---|
12 | Init: pthread_mutexattr_getpshared - EINVAL (NULL attr) |
---|
13 | Init: pthread_mutexattr_getpshared - EINVAL (NULL pshared) |
---|
14 | Init: pthread_mutexattr_getpshared - EINVAL (not initialized) |
---|
15 | Init: pthread_mutexattr_setpshared - EINVAL (NULL attr) |
---|
16 | Init: pthread_mutexattr_setpshared - EINVAL (not initialized) |
---|
17 | |
---|
18 | Init: pthread_mutexattr_getprotocol - EINVAL (NULL attr) |
---|
19 | Init: pthread_mutexattr_getprotocol - EINVAL (NULL protocol) |
---|
20 | Init: pthread_mutexattr_getprotocol - EINVAL (not initialized) |
---|
21 | Init: pthread_mutexattr_setprotocol - EINVAL (NULL attr) |
---|
22 | Init: pthread_mutexattr_setprotocol - EINVAL (invalid protocol) |
---|
23 | Init: pthread_mutexattr_setprotocol - EINVAL (not initialized) |
---|
24 | |
---|
25 | Init: pthread_mutexattr_getprioceiling - EINVAL (NULL attr) |
---|
26 | Init: pthread_mutexattr_getprioceiling - EINVAL (NULL prioceiling) |
---|
27 | Init: pthread_mutexattr_getprioceiling - EINVAL (not initialized) |
---|
28 | Init: pthread_mutexattr_setprioceiling - EINVAL (NULL attr) |
---|
29 | Init: pthread_mutexattr_setprioceiling - EINVAL (invalid priority) |
---|
30 | Init: pthread_mutexattr_setprioceiling - EINVAL (not initialized) |
---|
31 | |
---|
32 | Init: pthread_mutex_init - EINVAL (NULL mutex_id) |
---|
33 | Init: pthread_mutex_init - EINVAL (not initialized attr) |
---|
34 | Init: pthread_mutex_init - EINVAL (bad protocol) |
---|
35 | Init: pthread_mutex_init - EINVAL (bad priority ceiling) |
---|
36 | Init: Resetting mutex attributes |
---|
37 | Init: pthread_mutex_init - ENOSYS (process wide scope) |
---|
38 | Init: pthread_mutex_init - EINVAL (invalid scope) |
---|
39 | Init: Resetting mutex attributes |
---|
40 | Init: Changing mutex attributes |
---|
41 | Init: mutex protocol is (1) -- PTHREAD_PRIO_INHERIT |
---|
42 | Init: mutex priority ceiling is 128 |
---|
43 | Init: mutex process shared is (1) -- PTHREAD_PROCESS_SHARED |
---|
44 | Init: Resetting mutex attributes |
---|
45 | Init: pthread_mutex_init - SUCCESSFUL |
---|
46 | Init: pthread_mutex_init - EBUSY (reinitialize an existing mutex) - skipped |
---|
47 | Init: pthread_mutex_trylock - EINVAL (illegal ID) |
---|
48 | Init: pthread_mutex_trylock - SUCCESSFUL |
---|
49 | Init: pthread_mutex_trylock - EDEADLK (already locked) |
---|
50 | Init: pthread_mutex_lock - EINVAL (NULL id) |
---|
51 | Init: pthread_mutex_unlock - EINVAL (NULL id) |
---|
52 | Init: pthread_mutex_lock - EDEADLK (already locked) |
---|
53 | Init: Sleep 1 second |
---|
54 | Task: pthread_mutex_trylock already locked |
---|
55 | Task: pthread_mutex_lock unavailable |
---|
56 | Init: pthread_mutex_unlock - EINVAL (invalid id) |
---|
57 | Init: pthread_mutex_unlock - SUCCESSFUL |
---|
58 | Init: pthread_mutex_unlock - EPERM (not owner) |
---|
59 | Init: pthread_mutex_timedlock - time out in 1/2 second |
---|
60 | Task: mutex acquired |
---|
61 | Task: sleep for 2 seconds |
---|
62 | Init: pthread_mutex_timedlock - time out in the past |
---|
63 | Init: pthread_mutex_timedlock - EAGAIN (timeout) |
---|
64 | |
---|
65 | Init: pthread_mutex_init - SUCCESSFUL |
---|
66 | Init: pthread_mutex_init - EAGAIN (too many) |
---|
67 | Init: pthread_mutexattr_destroy - SUCCESSFUL |
---|
68 | Init: pthread_mutex_destroy - SUCCESSFUL |
---|
69 | Init: pthread_mutex_destroy - EINVAL (invalid id) |
---|
70 | |
---|
71 | Init: pthread_mutexattr_init - SUCCESSFUL |
---|
72 | Init: pthread_mutex_init - SUCCESSFUL |
---|
73 | Init: pthread_mutex_trylock - SUCCESSFUL |
---|
74 | Init: pthread_mutex_destroy - EBUSY (already locked) |
---|
75 | Init: pthread_mutex_unlock - SUCCESSFUL |
---|
76 | Init: pthread_mutex_destroy - SUCCESSFUL |
---|
77 | |
---|
78 | Init: pthread_mutexattr_init - SUCCESSFUL |
---|
79 | Init: pthread_mutexattr_setprotocol - SUCCESSFUL (PTHREAD_PRIO_INHERIT) |
---|
80 | Init: pthread_mutex_init - SUCCESSFUL |
---|
81 | Init: pthread_mutex_trylock - SUCCESSFUL |
---|
82 | Init: pthread_setschedparam - Setting Task2 priority to highest |
---|
83 | Task 2: pthread_mutex_lock unavailable (inherit case) |
---|
84 | Init: pthread_getschedparam - priority = 254 |
---|
85 | Init: pthread_mutex_unlock - SUCCESSFUL |
---|
86 | Task 2: mutex acquired |
---|
87 | Task 2: unlock Mutex 2 |
---|
88 | Task 2: exit |
---|
89 | Init: pthread_mutexattr_destroy - SUCCESSFUL |
---|
90 | Init: pthread_mutex_destroy - SUCCESSFUL |
---|
91 | |
---|
92 | Init: pthread_mutexattr_init - SUCCESSFUL |
---|
93 | Init: pthread_mutexattr_setprotocol - SUCCESSFUL (PTHREAD_PRIO_PROTECT) |
---|
94 | Init: pthread_mutex_init - SUCCESSFUL |
---|
95 | Init: pthread_mutex_getprioceiling - EINVAL (invalid id) |
---|
96 | Init: pthread_mutex_getprioceiling - EINVAL (NULL ceiling) |
---|
97 | Init: pthread_mutex_getprioceiling - 254 |
---|
98 | Init: pthread_mutex_setprioceiling - EINVAL (invalid id) |
---|
99 | Init: pthread_mutex_setprioceiling - EINVAL (illegal priority) |
---|
100 | Init: pthread_mutex_setprioceiling - EINVAL (NULL ceiling) |
---|
101 | Init: pthread_mutex_setprioceiling - new ceiling = 200 |
---|
102 | Init: pthread_mutex_setprioceiling - old ceiling = 254 |
---|
103 | Init: pthread_getschedparam - priority = 2 |
---|
104 | Init: pthread_mutex_trylock - SUCCESSFUL |
---|
105 | Init: pthread_getschedparam - priority = 200 |
---|
106 | Init: pthread_setschedparam - set Task3 priority to highest |
---|
107 | Init: Sleep 1 second |
---|
108 | Task 3: pthread_mutex_lock unavailable (inherit case) |
---|
109 | Init: pthread_mutex_unlock - SUCCESSFUL |
---|
110 | Task 3: mutex acquired |
---|
111 | Task 3: unlock Mutex 2 |
---|
112 | Task 3: pthread_getschedparam priority = 199 |
---|
113 | Task 3: exit |
---|
114 | Init: pthread_mutex_getprioceiling- ceiling = 200 |
---|
115 | Init: pthread_setschedparam - set Init priority to highest |
---|
116 | Init: pthread_mutex_lock - EINVAL (priority ceiling violation) |
---|
117 | Init: Recursive Mutex |
---|
118 | *** END OF POSIX TEST 5 *** |
---|