source: rtems/testsuites/psxtests/psx05/psx05.scn @ f188769

4.104.11
Last change on this file since f188769 was f188769, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 12, 2009 at 12:07:16 AM

2009-10-11 Joel Sherrill <joel.sherrill@…>

  • psx05/init.c, psx05/psx05.scn: Add test for bad mutex type.
  • Property mode set to 100644
File size: 5.1 KB
Line 
1*** POSIX TEST 5 ***
2Init's ID is 0x0b010001
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: pthread_mutex_init - ENOSYS (process wide scope)
38Init: pthread_mutex_init - EINVAL (invalid scope)
39Init: pthread_mutex_init - EINVAL (invalid type)
40Init: Resetting mutex attributes
41Init: Changing mutex attributes
42Init: mutex protocol is (1) -- PTHREAD_PRIO_INHERIT
43Init: mutex priority ceiling is 128
44Init: mutex process shared is (1) -- PTHREAD_PROCESS_SHARED
45Init: Resetting mutex attributes
46Init: pthread_mutex_init - SUCCESSFUL
47Init: pthread_mutex_init - EBUSY (reinitialize an existing mutex) - skipped
48Init: pthread_mutex_trylock - EINVAL (illegal ID)
49Init: pthread_mutex_trylock - SUCCESSFUL
50Init: pthread_mutex_trylock - EDEADLK (already locked)
51Init: pthread_mutex_lock - EINVAL (NULL id)
52Init: pthread_mutex_unlock - EINVAL (NULL id)
53Init: pthread_mutex_lock - EDEADLK (already locked)
54Init: Sleep 1 second
55Task: pthread_mutex_trylock already locked
56Task: pthread_mutex_lock unavailable
57Init: pthread_mutex_unlock - EINVAL (invalid id)
58Init: pthread_mutex_unlock - SUCCESSFUL
59Init: pthread_mutex_unlock - EPERM (not owner)
60Init: pthread_mutex_timedlock - time out in 1/2 second
61Task: mutex acquired
62Task: sleep for 2 seconds
63Init: pthread_mutex_timedlock - time out in the past
64Init: pthread_mutex_timedlock - EAGAIN (timeout)
65
66Init: pthread_mutex_init - SUCCESSFUL
67Init: pthread_mutex_init - EAGAIN (too many)
68Init: pthread_mutexattr_destroy - SUCCESSFUL
69Init: pthread_mutex_destroy - SUCCESSFUL
70Init: pthread_mutex_destroy - EINVAL (invalid id)
71
72Init: pthread_mutexattr_init - SUCCESSFUL
73Init: pthread_mutex_init - SUCCESSFUL
74Init: pthread_mutex_trylock - SUCCESSFUL
75Init: pthread_mutex_destroy - EBUSY (already locked)
76Init: pthread_mutex_unlock - SUCCESSFUL
77Init: pthread_mutex_destroy - SUCCESSFUL
78
79Init: pthread_mutexattr_init - SUCCESSFUL
80Init: pthread_mutexattr_setprotocol - SUCCESSFUL (PTHREAD_PRIO_INHERIT)
81Init: pthread_mutex_init - SUCCESSFUL
82Init: pthread_mutex_trylock - SUCCESSFUL
83Init: pthread_setschedparam - Setting Task2 priority to highest
84Task 2: pthread_mutex_lock unavailable (inherit case)
85Init: pthread_getschedparam - priority = 254
86Init: pthread_mutex_unlock - SUCCESSFUL
87Task 2: mutex acquired
88Task 2: unlock Mutex 2
89Task 2: exit
90Init: pthread_mutexattr_destroy - SUCCESSFUL
91Init: pthread_mutex_destroy - SUCCESSFUL
92
93Init: pthread_mutexattr_init - SUCCESSFUL
94Init: pthread_mutexattr_setprotocol - SUCCESSFUL (PTHREAD_PRIO_PROTECT)
95Init: pthread_mutex_init - SUCCESSFUL
96Init: pthread_mutex_getprioceiling - EINVAL (invalid id)
97Init: pthread_mutex_getprioceiling - EINVAL (NULL ceiling)
98Init: pthread_mutex_getprioceiling - 254
99Init: pthread_mutex_setprioceiling - EINVAL (invalid id)
100Init: pthread_mutex_setprioceiling - EINVAL (illegal priority)
101Init: pthread_mutex_setprioceiling - EINVAL (NULL ceiling)
102Init: pthread_mutex_setprioceiling - new ceiling = 200
103Init: pthread_mutex_setprioceiling - old ceiling = 254
104Init: pthread_getschedparam - priority = 2
105Init: pthread_mutex_trylock - SUCCESSFUL
106Init: pthread_getschedparam - priority = 200
107Init: pthread_setschedparam - set Task3 priority to highest
108Init: Sleep 1 second
109Task 3: pthread_mutex_lock unavailable (inherit case)
110Init: pthread_mutex_unlock - SUCCESSFUL
111Task 3: mutex acquired
112Task 3: unlock Mutex 2
113Task 3: pthread_getschedparam priority = 199
114Task 3: exit
115Init: pthread_mutex_getprioceiling- ceiling = 200
116Init: pthread_setschedparam - set Init priority to highest
117Init: pthread_mutex_lock - EINVAL (priority ceiling violation)
118Init: Recursive Mutex
119*** END OF POSIX TEST 5 ***
Note: See TracBrowser for help on using the repository browser.