Mercurial > hg
comparison tests/test-run-tests.t @ 31827:220d4bffd23e
run-tests: prevent a (glob) declaration from reordering (?) lines
Previously, if a series of optional output lines marked with '(?)' had a (glob)
in one of the first lines, the output would be reordered such that it came last
if none of the lines were output. The (re) declaration wasn't affected, which
was helpful in figuring this out. There were no tests for '(re) (?)' so add
that to make sure everything plays nice.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 05 Apr 2017 22:00:33 -0400 |
parents | 6a2959acae1a |
children | ff60498211f3 |
comparison
equal
deleted
inserted
replaced
31826:9fce17c4a7b3 | 31827:220d4bffd23e |
---|---|
53 | 53 |
54 $ cat > test-success.t << EOF | 54 $ cat > test-success.t << EOF |
55 > $ echo babar | 55 > $ echo babar |
56 > babar | 56 > babar |
57 > $ echo xyzzy | 57 > $ echo xyzzy |
58 > dont_print (?) | |
59 > nothing[42]line (re) (?) | |
58 > never*happens (glob) (?) | 60 > never*happens (glob) (?) |
61 > more_nothing (?) | |
59 > xyzzy | 62 > xyzzy |
60 > nor this (?) | 63 > nor this (?) |
61 > $ printf 'abc\ndef\nxyz\n' | 64 > $ printf 'abc\ndef\nxyz\n' |
62 > 123 (?) | 65 > 123 (?) |
63 > abc | 66 > abc |
324 babar | 327 babar |
325 + echo *SALT* 2 0 (glob) | 328 + echo *SALT* 2 0 (glob) |
326 *SALT* 2 0 (glob) | 329 *SALT* 2 0 (glob) |
327 + echo xyzzy | 330 + echo xyzzy |
328 xyzzy | 331 xyzzy |
329 + echo *SALT* 6 0 (glob) | 332 + echo *SALT* 9 0 (glob) |
330 *SALT* 6 0 (glob) | 333 *SALT* 9 0 (glob) |
331 + printf *abc\ndef\nxyz\n* (glob) | 334 + printf *abc\ndef\nxyz\n* (glob) |
332 abc | 335 abc |
333 def | 336 def |
334 xyz | 337 xyz |
335 + echo *SALT* 12 0 (glob) | 338 + echo *SALT* 15 0 (glob) |
336 *SALT* 12 0 (glob) | 339 *SALT* 15 0 (glob) |
337 . | 340 . |
338 # Ran 2 tests, 0 skipped, 0 warned, 0 failed. | 341 # Ran 2 tests, 0 skipped, 0 warned, 0 failed. |
339 | 342 |
340 Parallel runs | 343 Parallel runs |
341 ============== | 344 ============== |