summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx05/psx05.scn
blob: 700f3bfb4f8050c7d833843b3b2d9dee056baa3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
*** BEGIN OF TEST PSX 5 ***
Init's ID is 0x0b010001
Init: pthread_mutexattr_init - EINVAL (NULL attr)
Init: pthread_mutexattr_init - SUCCESSFUL
Init: mutex protocol is (0) -- PTHREAD_PRIO_NONE
Init: mutex priority ceiling is 2147483647
Init: mutex process shared is (0) -- PTHREAD_PROCESS_PRIVATE
Init: pthread_mutexattr_destroy - SUCCESSFUL
Init: pthread_mutexattr_destroy - EINVAL (NULL attr)
Init: pthread_mutexattr_destroy - EINVAL (not initialized)

Init: pthread_mutexattr_getpshared - EINVAL (NULL attr)
Init: pthread_mutexattr_getpshared - EINVAL (NULL pshared)
Init: pthread_mutexattr_getpshared - EINVAL (not initialized)
Init: pthread_mutexattr_setpshared - EINVAL (NULL attr)
Init: pthread_mutexattr_setpshared - EINVAL (not initialized)

Init: pthread_mutexattr_getprotocol - EINVAL (NULL attr)
Init: pthread_mutexattr_getprotocol - EINVAL (NULL protocol)
Init: pthread_mutexattr_getprotocol - EINVAL (not initialized)
Init: pthread_mutexattr_setprotocol - EINVAL (NULL attr)
Init: pthread_mutexattr_setprotocol - EINVAL (invalid protocol)
Init: pthread_mutexattr_setprotocol - EINVAL (not initialized)

Init: pthread_mutexattr_getprioceiling - EINVAL (NULL attr)
Init: pthread_mutexattr_getprioceiling - EINVAL (NULL prioceiling)
Init: pthread_mutexattr_getprioceiling - EINVAL (not initialized)
Init: pthread_mutexattr_setprioceiling - EINVAL (NULL attr)
Init: pthread_mutexattr_setprioceiling - SUCCESSFUL (priority INT_MAX)
Init: pthread_mutexattr_setprioceiling - SUCCESSFUL (priority INT_MIN)
Init: pthread_mutexattr_setprioceiling - EINVAL (not initialized)

Init: pthread_mutex_init - EINVAL (NULL mutex_id)
Init: pthread_mutex_init - EINVAL (not initialized attr)
Init: pthread_mutex_init - EINVAL (bad protocol)
Init: pthread_mutexattr_setprotocol - SUCCESSFUL
Init: pthread_mutexattr_setprioceiling - SUCCESSFUL
Init: pthread_mutex_init - EINVAL (bad priority ceiling)
Init: Resetting mutex attributes
Init: pthread_mutex_init - process shared scope
Init: pthread_mutex_init - EINVAL (invalid scope)
Init: pthread_mutex_init - EINVAL (invalid type)
Init: Resetting mutex attributes
Init: Changing mutex attributes
Init: mutex protocol is (1) -- PTHREAD_PRIO_INHERIT
Init: mutex priority ceiling is 128
Init: mutex process shared is (1) -- PTHREAD_PROCESS_SHARED
Init: Resetting mutex attributes
Init: pthread_mutex_init - SUCCESSFUL
Init: pthread_mutex_init - EBUSY (reinitialize an existing mutex) - skipped
Init: pthread_mutex_trylock - EINVAL (illegal ID)
Init: pthread_mutex_trylock - SUCCESSFUL
Init: pthread_mutex_trylock - EDEADLK (already locked)
Init: pthread_mutex_lock - EINVAL (NULL id)
Init: pthread_mutex_unlock - EINVAL (NULL id)
Init: pthread_mutex_lock - EDEADLK (already locked)
Init: Sleep 1 second
Task: pthread_mutex_trylock already locked
Task: pthread_mutex_lock unavailable
Init: pthread_mutex_unlock - EINVAL (invalid id)
Init: pthread_mutex_unlock - SUCCESSFUL
Init: pthread_mutex_unlock - EPERM (not owner)
Init: pthread_mutex_timedlock - time out in 1/2 second
Task: mutex acquired
Task: sleep for 2 seconds
Init: pthread_mutex_timedlock - time out in the past
Init: pthread_mutex_timedlock - EAGAIN (timeout)

Init: pthread_mutex_init - SUCCESSFUL
Init: pthread_mutex_init - SUCCESSFUL
Init: pthread_mutexattr_destroy - SUCCESSFUL
Init: pthread_mutex_destroy - SUCCESSFUL
Init: pthread_mutex_destroy - SUCCESSFUL
Init: pthread_mutex_destroy - EINVAL (invalid id)

Init: pthread_mutexattr_init - SUCCESSFUL
Init: pthread_mutex_init - SUCCESSFUL
Init: pthread_mutex_trylock - SUCCESSFUL
Init: pthread_mutex_destroy - EBUSY (already locked)
Init: pthread_mutex_unlock - SUCCESSFUL
Init: pthread_mutex_destroy - SUCCESSFUL

Init: pthread_mutexattr_init - SUCCESSFUL
Init: pthread_mutexattr_setprotocol - SUCCESSFUL (PTHREAD_PRIO_INHERIT)
Init: pthread_mutex_init - SUCCESSFUL
Init: pthread_mutex_trylock - SUCCESSFUL
Init: pthread_setschedparam - Setting Task2 priority to highest
Task 2: pthread_mutex_lock unavailable (inherit case)
Init: pthread_getschedparam - priority = 2
Init: pthread_mutex_unlock - SUCCESSFUL
Task 2: mutex acquired
Task 2: unlock Mutex 2
Task 2: exit
Init: pthread_mutexattr_destroy - SUCCESSFUL
Init: pthread_mutex_destroy - SUCCESSFUL

Init: pthread_mutexattr_init - SUCCESSFUL
Init: pthread_mutexattr_setprotocol - SUCCESSFUL (PTHREAD_PRIO_PROTECT)
Init: pthread_mutex_init - SUCCESSFUL
Init: pthread_mutex_getprioceiling - EINVAL (invalid id)
Init: pthread_mutex_getprioceiling - EINVAL (NULL ceiling)
Init: pthread_mutex_getprioceiling - 254
Init: pthread_mutex_setprioceiling - EINVAL (invalid id)
Init: pthread_mutex_setprioceiling - EINVAL (illegal priority)
Init: pthread_mutex_setprioceiling - EINVAL (NULL ceiling)
Init: pthread_mutex_setprioceiling - new ceiling = 200
Init: pthread_mutex_setprioceiling - old ceiling = 254
Init: pthread_getschedparam - priority = 2
Init: pthread_mutex_trylock - SUCCESSFUL
Init: pthread_getschedparam - priority = 2
Init: pthread_setschedparam - set Task3 priority to highest
Init: Sleep 1 second
Task 3: pthread_mutex_lock unavailable (inherit case)
Init: pthread_mutex_unlock - SUCCESSFUL
Task 3: mutex acquired
Task 3: unlock Mutex 2
Init: pthread_mutex_getprioceiling- ceiling = 200
Init: pthread_setschedparam - set Init priority to highest
Init: pthread_mutex_lock - EINVAL (priority ceiling violation)
Init: Recursive Mutex
*** END OF TEST PSX 5 ***