source: rtems/c/src/tests/psxtests/psx05/psx05.scn @ 1d61610

4.104.114.84.95
Last change on this file since 1d61610 was 1d61610, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 18, 1997 at 6:39:01 PM

Modified to reflect change from 255 posix priority levels to 254.

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