summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxmsgq01/psxmsgq01.scn
blob: 7da252f70a97a3f7b5679894192114d8b5bf97d0 (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
*** POSIX MESSAGE QUEUE TEST ***
_______________mq_open errors
Init: mq_open - Create with maxmsg (-1) (EINVAL)
Init: mq_open - Create with msgsize (-1) (EINVAL)
Init: mq_open - Open new mq without create flag (ENOENT)
Init: mq_open - Open with too long of a name (ENAMETOOLONG)
Init: mq_open - SUCCESSFUL
Init: mq_open - Create an Existing mq (EEXIST)
Init: mq_open - system is out of resources (ENFILE)
Init: mq_close and mq_unlink (mq3...mqn) - SUCCESSFUL
Init: Open Test Queues
_______________mq_unlink errors
Init: mq_unlink - mq_unlink with too long of a name (ENAMETOOLONG)
Init: mq_unlink - A Queue not opened  (ENOENT)
Init: mq_unlink (NULL) - EINVAL
Init: mq_unlink ("") - EINVAL
_______________mq_close errors
Init: mq_close - unopened queue (EBADF)
_______________mq_unlink functionality
Init: Unlink and Open without closing SUCCESSFUL
Task1:mq_setattr - unopened queue (EBADF)
Task1:mq_setattr - NULL attributes (EINVAL)
Init: set_attr all queues to blocking
Init: Init: mq_timedreceive - on queue Qnoblock Init: 1 sec 0 us
Init: Init: mq_timedreceive - on queue Qblock Init: 1 sec 0 us
Init: Init: mq_timedreceive - on queue Qdefault Init: 1 sec 0 us
_______________mq_send errors
Init: mq_send - Closed message queue (EBADF)
Init: mq_send - Read only message queue (EBADF)
Init: mq_send - Priority out of range (EINVAL)
Init: mq_send - Message longer than msg_len (EMSGSIZE)
Init: Verify Queues are empty
Init: Fill Queues with messages
Init: Verify Queues are full
Init: mq_send - on a FULL non-blocking queue with (EAGAIN)
_______________mq_getattr errors
Init: mq_getattr - unopened queue (EBADF)
Init: mq_getattr - NULL attributes (EINVAL)
_______________mq_timedsend
Init: mq_timedsend - on queue Qnoblock Init: 0 sec 0 us
Init: mq_timedsend - on queue Qblock Init: 1 sec 0 us
Init: mq_timedsend - on queue Qdefault Init: 0 sec 0 us
_______________mq_receive errors
Init: mq_receive - Unopened message queue (EBADF)
Init: mq_receive - Write only queue (EBADF)
Init: mq_receive - Size is less than the message (EMSGSIZE)
Init: Verify Queues are full
Init: Empty all Queues
Init: mq_receive - Queue is empty (EAGAIN)
_______________mq_timedreceive
Init: Init: mq_timedreceive - on queue Qnoblock Init: 0 sec 0 us
Init: Init: mq_timedreceive - on queue Qblock Init: 1 sec 0 us
Init: Init: mq_timedreceive - on queue Qdefault Init: 1 sec 0 us
_______________mq_open functionality
Init: mq_open - Open an existing mq ( same id )
_______________mq_notify
Init: mq_notify - Unopened message queue (EBADF)
_____mq_notify - notify when Qnoblock gets a message
waiting on any signal for 3 seconds.
Init: Verify Signal when send
Init: mq_send -  to Qnoblock msg: 12345678 priority 31
waiting on any signal for 3 seconds.
Init: Verify No Signal when send
Init: mq_send -  to Qnoblock msg: 12345678 priority 31
waiting on any signal for 3 seconds.
____mq_notify - notify when Qread gets a message
waiting on any signal for 3 seconds.
Init: mq_notify -  (EBUSY)
Init: mq_notify - Remove notification with null
Init: Verify No Signal when send
Init: mq_send -  to Qnoblock msg: 12345678 priority 31
waiting on any signal for 3 seconds.
_______________multi-thread Task 4 Receive Test
Init: mq_receive - Empty queue changes to non-blocking (EAGAIN)
Task_4: Fri Jan 01 00:00:18 1988
Task_4: Set queue to non-blocking
Task_4: Return queue to blocking
Task_4: pthread_exit
Init: Fri Jan 01 00:00:18 1988
_______________multi-thread Task 1 Test
Task_1: Fri Jan 01 00:00:18 1988
Task_1: mq_send -  to Qblock msg: 12345678 priority 31
Task_1: pthread_exit
Init: Fri Jan 01 00:00:18 1988
_______________multi-thread Task 4 Send Test
Init: Verify Queues are empty
Init: Fill Queues with messages
Init: Verify Queues are full
Init: mq_send - Full queue changes to non-blocking (EAGAIN)
Task_4: Fri Jan 01 00:00:18 1988
Task_4: Set queue to non-blocking
Task_4: Return queue to blocking
Task_4: pthread_exit
Init: Verify Queues are full
Init: Empty all Queues
_______________multi-thread Task 2 Test
Init: Verify Queues are empty
Init: Fill Queues with messages
Init: Verify Queues are full
Init: mq_send -  to Qblock msg: Last priority 32
Task_2: Fri Jan 01 00:00:18 1988
Task_2: Verify Queues are full
Task_2: pthread_exit
Init: Fri Jan 01 00:00:18 1988
Init: Verify Queues are full
Init: Empty all Queues
_______________multi-thread Task 3 Test
Init: Verify Queues are empty
Init: Fill Queues with messages
Init: Verify Queues are full
Init: mq_send - Block while thread deletes queue (EBADF)
Task_3: Fri Jan 01 00:00:18 1988
_______________Unlink and Close All Files
Task_3: pthread_exit
*** END OF POSIX MESSAGE QUEUE TEST ***