2 # Test of fmtmsg function family.
3 # Copyright (C) 2000, 2001 Free Software Foundation, Inc.
4 # This file is part of the GNU C Library.
6 # The GNU C Library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Library General Public License as
8 # published by the Free Software Foundation; either version 2 of the
9 # License, or (at your option) any later version.
11 # The GNU C Library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Library General Public License for more details.
16 # You should have received a copy of the GNU Library General Public
17 # License along with the GNU C Library; see the file COPYING.LIB. If
18 # not, write to the Free Software Foundation, Inc.,
19 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 test="${run_program_prefix} ${objpfx}tst-fmtmsg"
26 out
=${objpfx}tst-fmtmsg.out
31 (MSGVERB
= $test ||
exit 1;
32 MSGVERB
=label
$test ||
exit 1;
33 MSGVERB
=severity
$test ||
exit 1;
34 MSGVERB
=severity
:label
$test ||
exit 1;
35 MSGVERB
=text
$test ||
exit 1;
36 MSGVERB
=text
:label
$test ||
exit 1;
37 MSGVERB
=text
:severity
$test ||
exit 1;
38 MSGVERB
=text
:severity
:label
$test ||
exit 1;
39 MSGVERB
=action
$test ||
exit 1;
40 MSGVERB
=action
:label
$test ||
exit 1;
41 MSGVERB
=action
:severity
$test ||
exit 1;
42 MSGVERB
=action
:severity
:label
$test ||
exit 1;
43 MSGVERB
=action
:text
$test ||
exit 1;
44 MSGVERB
=action
:text
:label
$test ||
exit 1;
45 MSGVERB
=action
:text
:severity
$test ||
exit 1;
46 MSGVERB
=action
:text
:severity
:label
$test ||
exit 1;
47 MSGVERB
=tag
$test ||
exit 1;
48 MSGVERB
=tag
:label
$test ||
exit 1;
49 MSGVERB
=tag
:severity
$test ||
exit 1;
50 MSGVERB
=tag
:severity
:label
$test ||
exit 1;
51 MSGVERB
=tag
:text
$test ||
exit 1;
52 MSGVERB
=tag
:text
:label
$test ||
exit 1;
53 MSGVERB
=tag
:text
:severity
$test ||
exit 1;
54 MSGVERB
=tag
:text
:severity
:label
$test ||
exit 1;
55 MSGVERB
=tag
:action
$test ||
exit 1;
56 MSGVERB
=tag
:action
:label
$test ||
exit 1;
57 MSGVERB
=tag
:action
:severity
$test ||
exit 1;
58 MSGVERB
=tag
:action
:severity
:label
$test ||
exit 1;
59 MSGVERB
=tag
:action
:text
$test ||
exit 1;
60 MSGVERB
=tag
:action
:text
:label
$test ||
exit 1;
61 MSGVERB
=tag
:action
:text
:severity
$test ||
exit 1;
62 MSGVERB
=tag
:action
:text
:severity
:label
$test ||
exit 1;) 2> $out
65 GLIBC:tst-fmtmsg: HALT: halt
66 TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
67 GLIBC:tst-fmtmsg: ERROR: halt
68 TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
69 GLIBC:tst-fmtmsg: WARNING: halt
70 TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
71 GLIBC:tst-fmtmsg: INFO: halt
72 TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
73 GLIBC:tst-fmtmsg: halt
74 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
75 GLIBC:tst-fmtmsg: TEST: halt
76 TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
89 GLIBC:tst-fmtmsg: HALT
90 GLIBC:tst-fmtmsg: ERROR
91 GLIBC:tst-fmtmsg: WARNING
92 GLIBC:tst-fmtmsg: INFO
94 GLIBC:tst-fmtmsg: TEST
101 GLIBC:tst-fmtmsg: halt
102 GLIBC:tst-fmtmsg: halt
103 GLIBC:tst-fmtmsg: halt
104 GLIBC:tst-fmtmsg: halt
105 GLIBC:tst-fmtmsg: halt
106 GLIBC:tst-fmtmsg: halt
113 GLIBC:tst-fmtmsg: HALT: halt
114 GLIBC:tst-fmtmsg: ERROR: halt
115 GLIBC:tst-fmtmsg: WARNING: halt
116 GLIBC:tst-fmtmsg: INFO: halt
117 GLIBC:tst-fmtmsg: halt
118 GLIBC:tst-fmtmsg: TEST: halt
119 TO FIX: should print message for MM_HALT
120 TO FIX: should print message for MM_ERROR
121 TO FIX: should print message for MM_WARNING
122 TO FIX: should print message for MM_INFO
123 TO FIX: should print message for MM_NOSEV
124 TO FIX: should print message for MM_TEST
125 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_HALT
126 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_ERROR
127 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_WARNING
128 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_INFO
129 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_NOSEV
130 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_TEST
131 HALT: TO FIX: should print message for MM_HALT
132 ERROR: TO FIX: should print message for MM_ERROR
133 WARNING: TO FIX: should print message for MM_WARNING
134 INFO: TO FIX: should print message for MM_INFO
135 TO FIX: should print message for MM_NOSEV
136 TEST: TO FIX: should print message for MM_TEST
137 GLIBC:tst-fmtmsg: HALT: TO FIX: should print message for MM_HALT
138 GLIBC:tst-fmtmsg: ERROR: TO FIX: should print message for MM_ERROR
139 GLIBC:tst-fmtmsg: WARNING: TO FIX: should print message for MM_WARNING
140 GLIBC:tst-fmtmsg: INFO: TO FIX: should print message for MM_INFO
141 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_NOSEV
142 GLIBC:tst-fmtmsg: TEST: TO FIX: should print message for MM_TEST
144 TO FIX: should print message for MM_HALT
146 TO FIX: should print message for MM_ERROR
148 TO FIX: should print message for MM_WARNING
150 TO FIX: should print message for MM_INFO
152 TO FIX: should print message for MM_NOSEV
154 TO FIX: should print message for MM_TEST
155 GLIBC:tst-fmtmsg: halt
156 TO FIX: should print message for MM_HALT
157 GLIBC:tst-fmtmsg: halt
158 TO FIX: should print message for MM_ERROR
159 GLIBC:tst-fmtmsg: halt
160 TO FIX: should print message for MM_WARNING
161 GLIBC:tst-fmtmsg: halt
162 TO FIX: should print message for MM_INFO
163 GLIBC:tst-fmtmsg: halt
164 TO FIX: should print message for MM_NOSEV
165 GLIBC:tst-fmtmsg: halt
166 TO FIX: should print message for MM_TEST
168 TO FIX: should print message for MM_HALT
170 TO FIX: should print message for MM_ERROR
172 TO FIX: should print message for MM_WARNING
174 TO FIX: should print message for MM_INFO
176 TO FIX: should print message for MM_NOSEV
178 TO FIX: should print message for MM_TEST
179 GLIBC:tst-fmtmsg: HALT: halt
180 TO FIX: should print message for MM_HALT
181 GLIBC:tst-fmtmsg: ERROR: halt
182 TO FIX: should print message for MM_ERROR
183 GLIBC:tst-fmtmsg: WARNING: halt
184 TO FIX: should print message for MM_WARNING
185 GLIBC:tst-fmtmsg: INFO: halt
186 TO FIX: should print message for MM_INFO
187 GLIBC:tst-fmtmsg: halt
188 TO FIX: should print message for MM_NOSEV
189 GLIBC:tst-fmtmsg: TEST: halt
190 TO FIX: should print message for MM_TEST
197 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:1
198 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:2
199 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:3
200 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:4
201 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:5
202 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:6
203 HALT: GLIBC:tst-fmtmsg:1
204 ERROR: GLIBC:tst-fmtmsg:2
205 WARNING: GLIBC:tst-fmtmsg:3
206 INFO: GLIBC:tst-fmtmsg:4
208 TEST: GLIBC:tst-fmtmsg:6
209 GLIBC:tst-fmtmsg: HALT: GLIBC:tst-fmtmsg:1
210 GLIBC:tst-fmtmsg: ERROR: GLIBC:tst-fmtmsg:2
211 GLIBC:tst-fmtmsg: WARNING: GLIBC:tst-fmtmsg:3
212 GLIBC:tst-fmtmsg: INFO: GLIBC:tst-fmtmsg:4
213 GLIBC:tst-fmtmsg: GLIBC:tst-fmtmsg:5
214 GLIBC:tst-fmtmsg: TEST: GLIBC:tst-fmtmsg:6
227 GLIBC:tst-fmtmsg: halt
229 GLIBC:tst-fmtmsg: halt
231 GLIBC:tst-fmtmsg: halt
233 GLIBC:tst-fmtmsg: halt
235 GLIBC:tst-fmtmsg: halt
237 GLIBC:tst-fmtmsg: halt
251 GLIBC:tst-fmtmsg: HALT: halt
253 GLIBC:tst-fmtmsg: ERROR: halt
255 GLIBC:tst-fmtmsg: WARNING: halt
257 GLIBC:tst-fmtmsg: INFO: halt
259 GLIBC:tst-fmtmsg: halt
261 GLIBC:tst-fmtmsg: TEST: halt
263 TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
264 TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
265 TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
266 TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
267 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
268 TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
269 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
270 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
271 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
272 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
273 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
274 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
275 HALT: TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
276 ERROR: TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
277 WARNING: TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
278 INFO: TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
279 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
280 TEST: TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
281 GLIBC:tst-fmtmsg: HALT: TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
282 GLIBC:tst-fmtmsg: ERROR: TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
283 GLIBC:tst-fmtmsg: WARNING: TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
284 GLIBC:tst-fmtmsg: INFO: TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
285 GLIBC:tst-fmtmsg: TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
286 GLIBC:tst-fmtmsg: TEST: TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
288 TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
290 TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
292 TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
294 TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
296 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
298 TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
299 GLIBC:tst-fmtmsg: halt
300 TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
301 GLIBC:tst-fmtmsg: halt
302 TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
303 GLIBC:tst-fmtmsg: halt
304 TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
305 GLIBC:tst-fmtmsg: halt
306 TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
307 GLIBC:tst-fmtmsg: halt
308 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
309 GLIBC:tst-fmtmsg: halt
310 TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
312 TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
314 TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
316 TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
318 TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
320 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
322 TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6
323 GLIBC:tst-fmtmsg: HALT: halt
324 TO FIX: should print message for MM_HALT GLIBC:tst-fmtmsg:1
325 GLIBC:tst-fmtmsg: ERROR: halt
326 TO FIX: should print message for MM_ERROR GLIBC:tst-fmtmsg:2
327 GLIBC:tst-fmtmsg: WARNING: halt
328 TO FIX: should print message for MM_WARNING GLIBC:tst-fmtmsg:3
329 GLIBC:tst-fmtmsg: INFO: halt
330 TO FIX: should print message for MM_INFO GLIBC:tst-fmtmsg:4
331 GLIBC:tst-fmtmsg: halt
332 TO FIX: should print message for MM_NOSEV GLIBC:tst-fmtmsg:5
333 GLIBC:tst-fmtmsg: TEST: halt
334 TO FIX: should print message for MM_TEST GLIBC:tst-fmtmsg:6