Commit dac76a8
syscalls/msgstress01: Fix timeouts
Make the test exit if runtime has been exhausted before we finished the
requested amount of iterations.
For that to happen we let the main test process to loop while checking
the runtime and set the stop flag if runtime was exhausted. We also need
to separate the stop and fail flag and add counter for finished children.
Also if we exhaust our runtime during the initial fork phase we print a
warning, since we hardly did a meaningful testing in that case.
The changes can be tested with -I parameter, e.g. -I 5 should trigger
the TWARN message and you should be able to get the test to stop in the
message sending phase with larger -I value.
Link: https://lore.kernel.org/ltp/[email protected]/
Reviewed-by: Martin Doucha <[email protected]>
Reviewed-by: Petr Vorel <[email protected]>
Signed-off-by: Cyril Hrubis <[email protected]>1 parent 8a2dca1 commit dac76a8
1 file changed
+48
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
80 | 87 | | |
81 | 88 | | |
82 | 89 | | |
| |||
113 | 120 | | |
114 | 121 | | |
115 | 122 | | |
| 123 | + | |
| 124 | + | |
116 | 125 | | |
117 | 126 | | |
118 | 127 | | |
| |||
139 | 148 | | |
140 | 149 | | |
141 | 150 | | |
| 151 | + | |
142 | 152 | | |
143 | 153 | | |
144 | 154 | | |
145 | 155 | | |
146 | 156 | | |
147 | 157 | | |
148 | 158 | | |
| 159 | + | |
149 | 160 | | |
150 | 161 | | |
151 | 162 | | |
| |||
156 | 167 | | |
157 | 168 | | |
158 | 169 | | |
| 170 | + | |
159 | 171 | | |
160 | 172 | | |
161 | 173 | | |
| |||
164 | 176 | | |
165 | 177 | | |
166 | 178 | | |
| 179 | + | |
| 180 | + | |
167 | 181 | | |
168 | 182 | | |
169 | 183 | | |
| |||
198 | 212 | | |
199 | 213 | | |
200 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
201 | 240 | | |
202 | 241 | | |
203 | 242 | | |
204 | 243 | | |
205 | 244 | | |
206 | | - | |
| 245 | + | |
207 | 246 | | |
208 | 247 | | |
209 | 248 | | |
| |||
244 | 283 | | |
245 | 284 | | |
246 | 285 | | |
247 | | - | |
| 286 | + | |
248 | 287 | | |
249 | | - | |
| 288 | + | |
250 | 289 | | |
251 | 290 | | |
252 | 291 | | |
253 | 292 | | |
254 | | - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
255 | 296 | | |
256 | 297 | | |
257 | 298 | | |
| |||
262 | 303 | | |
263 | 304 | | |
264 | 305 | | |
265 | | - | |
| 306 | + | |
266 | 307 | | |
267 | 308 | | |
268 | 309 | | |
| |||
273 | 314 | | |
274 | 315 | | |
275 | 316 | | |
276 | | - | |
| 317 | + | |
| 318 | + | |
277 | 319 | | |
278 | 320 | | |
279 | 321 | | |
0 commit comments