xref: /openbsd/regress/sys/fifofs/fifotest.out (revision 097a140d)
1
2Opened fifo fi.fo.fum
3
4Testing empty FIFO:
5	poll POLLIN|POLLOUT, timeout=0
6		1 fd(s) ready, revents == POLLOUT
7	poll POLLIN, timeout=0
8		0 fd(s) ready
9	poll POLLOUT, timeout=0
10		1 fd(s) ready, revents == POLLOUT
11	poll (none), timeout=0
12		0 fd(s) ready
13	select read write, timeout=0
14		1 fd(s) ready, writeable
15	select read, timeout=0
16		0 fd(s) ready
17	select write, timeout=0
18		1 fd(s) ready, writeable
19	select (none), timeout=0
20		0 fd(s) ready
21
22Testing full FIFO:
23	poll POLLIN|POLLOUT, timeout=0
24		1 fd(s) ready, revents == POLLIN POLLOUT
25	poll POLLIN, timeout=0
26		1 fd(s) ready, revents == POLLIN
27	poll POLLOUT, timeout=0
28		1 fd(s) ready, revents == POLLOUT
29	poll (none), timeout=0
30		0 fd(s) ready
31	select read write, timeout=0
32		2 fd(s) ready, readable, writeable
33	select read, timeout=0
34		1 fd(s) ready, readable
35	select write, timeout=0
36		1 fd(s) ready, writeable
37	select (none), timeout=0
38		0 fd(s) ready
39	received 'test' from FIFO
40
41Opened fifo fi.fo.fum
42
43Testing empty FIFO:
44	poll POLLIN|POLLOUT, timeout=-1
45		1 fd(s) ready, revents == POLLOUT
46	poll POLLIN, timeout=-1
47poll: Interrupted system call
48	poll POLLOUT, timeout=-1
49		1 fd(s) ready, revents == POLLOUT
50	poll (none), timeout=-1
51poll: Interrupted system call
52	select read write, timeout=-1
53		1 fd(s) ready, writeable
54	select read, timeout=-1
55select: Interrupted system call
56	select write, timeout=-1
57		1 fd(s) ready, writeable
58	select (none), timeout=-1
59select: Interrupted system call
60
61Testing full FIFO:
62	poll POLLIN|POLLOUT, timeout=-1
63		1 fd(s) ready, revents == POLLIN POLLOUT
64	poll POLLIN, timeout=-1
65		1 fd(s) ready, revents == POLLIN
66	poll POLLOUT, timeout=-1
67		1 fd(s) ready, revents == POLLOUT
68	poll (none), timeout=-1
69poll: Interrupted system call
70	select read write, timeout=-1
71		2 fd(s) ready, readable, writeable
72	select read, timeout=-1
73		1 fd(s) ready, readable
74	select write, timeout=-1
75		1 fd(s) ready, writeable
76	select (none), timeout=-1
77select: Interrupted system call
78	received 'test' from FIFO
79
80Opened fifo fi.fo.fum (nonblocking)
81
82Testing empty FIFO:
83	poll POLLIN|POLLOUT, timeout=0
84		1 fd(s) ready, revents == POLLOUT
85	poll POLLIN, timeout=0
86		0 fd(s) ready
87	poll POLLOUT, timeout=0
88		1 fd(s) ready, revents == POLLOUT
89	poll (none), timeout=0
90		0 fd(s) ready
91	select read write, timeout=0
92		1 fd(s) ready, writeable
93	select read, timeout=0
94		0 fd(s) ready
95	select write, timeout=0
96		1 fd(s) ready, writeable
97	select (none), timeout=0
98		0 fd(s) ready
99
100Testing full FIFO:
101	poll POLLIN|POLLOUT, timeout=0
102		1 fd(s) ready, revents == POLLIN POLLOUT
103	poll POLLIN, timeout=0
104		1 fd(s) ready, revents == POLLIN
105	poll POLLOUT, timeout=0
106		1 fd(s) ready, revents == POLLOUT
107	poll (none), timeout=0
108		0 fd(s) ready
109	select read write, timeout=0
110		2 fd(s) ready, readable, writeable
111	select read, timeout=0
112		1 fd(s) ready, readable
113	select write, timeout=0
114		1 fd(s) ready, writeable
115	select (none), timeout=0
116		0 fd(s) ready
117	received 'test' from FIFO
118
119Opened fifo fi.fo.fum (nonblocking)
120
121Testing empty FIFO:
122	poll POLLIN|POLLOUT, timeout=-1
123		1 fd(s) ready, revents == POLLOUT
124	poll POLLIN, timeout=-1
125poll: Interrupted system call
126	poll POLLOUT, timeout=-1
127		1 fd(s) ready, revents == POLLOUT
128	poll (none), timeout=-1
129poll: Interrupted system call
130	select read write, timeout=-1
131		1 fd(s) ready, writeable
132	select read, timeout=-1
133select: Interrupted system call
134	select write, timeout=-1
135		1 fd(s) ready, writeable
136	select (none), timeout=-1
137select: Interrupted system call
138
139Testing full FIFO:
140	poll POLLIN|POLLOUT, timeout=-1
141		1 fd(s) ready, revents == POLLIN POLLOUT
142	poll POLLIN, timeout=-1
143		1 fd(s) ready, revents == POLLIN
144	poll POLLOUT, timeout=-1
145		1 fd(s) ready, revents == POLLOUT
146	poll (none), timeout=-1
147poll: Interrupted system call
148	select read write, timeout=-1
149		2 fd(s) ready, readable, writeable
150	select read, timeout=-1
151		1 fd(s) ready, readable
152	select write, timeout=-1
153		1 fd(s) ready, writeable
154	select (none), timeout=-1
155select: Interrupted system call
156	received 'test' from FIFO
157
158Opened fifo for reading fi.fo.fum (nonblocking)
159
160Testing EOF FIFO behavior (pass 0):
161	poll POLLIN|POLLOUT, timeout=-1
162		1 fd(s) ready, revents == POLLIN POLLHUP
163	received EOF from FIFO
164
165Testing EOF FIFO behavior (pass 1):
166	poll POLLIN|POLLOUT, timeout=-1
167		1 fd(s) ready, revents == POLLIN POLLHUP
168	received EOF from FIFO
169
170Opened fifo for reading fi.fo.fum (nonblocking)
171
172Testing EOF FIFO behavior (pass 2):
173	poll POLLIN, timeout=-1
174		1 fd(s) ready, revents == POLLIN POLLHUP
175	received EOF from FIFO
176
177Testing EOF FIFO behavior (pass 3):
178	poll POLLIN, timeout=-1
179		1 fd(s) ready, revents == POLLIN POLLHUP
180	received EOF from FIFO
181
182Opened fifo for reading fi.fo.fum (nonblocking)
183
184Testing EOF FIFO behavior (pass 4):
185	poll POLLOUT, timeout=-1
186		1 fd(s) ready, revents == POLLHUP
187	received EOF from FIFO
188
189Testing EOF FIFO behavior (pass 5):
190	poll POLLOUT, timeout=-1
191		1 fd(s) ready, revents == POLLHUP
192	received EOF from FIFO
193
194Opened fifo for reading fi.fo.fum (nonblocking)
195
196Testing EOF FIFO behavior (pass 6):
197	poll (none), timeout=-1
198		1 fd(s) ready, revents == POLLHUP
199	received EOF from FIFO
200
201Testing EOF FIFO behavior (pass 7):
202	poll (none), timeout=-1
203		1 fd(s) ready, revents == POLLHUP
204	received EOF from FIFO
205
206Opened fifo for reading fi.fo.fum (nonblocking)
207
208Testing EOF FIFO behavior (pass 8):
209	select read write, timeout=-1
210		1 fd(s) ready, readable
211	received EOF from FIFO
212
213Testing EOF FIFO behavior (pass 9):
214	select read write, timeout=-1
215		1 fd(s) ready, readable
216	received EOF from FIFO
217
218Opened fifo for reading fi.fo.fum (nonblocking)
219
220Testing EOF FIFO behavior (pass 10):
221	select read, timeout=-1
222		1 fd(s) ready, readable
223	received EOF from FIFO
224
225Testing EOF FIFO behavior (pass 11):
226	select read, timeout=-1
227		1 fd(s) ready, readable
228	received EOF from FIFO
229
230Opened fifo for reading fi.fo.fum (nonblocking)
231
232Testing EOF FIFO behavior (pass 12):
233	select write, timeout=-1
234select: Interrupted system call
235	received EOF from FIFO
236
237Testing EOF FIFO behavior (pass 13):
238	select write, timeout=-1
239select: Interrupted system call
240	received EOF from FIFO
241
242Opened fifo for reading fi.fo.fum (nonblocking)
243
244Testing EOF FIFO behavior (pass 14):
245	select (none), timeout=-1
246select: Interrupted system call
247	received EOF from FIFO
248
249Testing EOF FIFO behavior (pass 15):
250	select (none), timeout=-1
251select: Interrupted system call
252	received EOF from FIFO
253