Commit 7273da3
committed
t/01-l10n.t: Skip tests properly
If a PO file is not found, e.g. the tests are run out of the source tree,
t/01-l10n.t failed on mismatching test plan:
t/01-l10n.t ..
1..12
# Skipping tests for 'de': locale/de/LC_MESSAGES/rdapper.po not found.
# Skipping tests for 'es': locale/es/LC_MESSAGES/rdapper.po not found.
# Skipping tests for 'fr': locale/fr/LC_MESSAGES/rdapper.po not found.
# Skipping tests for 'pt': locale/pt/LC_MESSAGES/rdapper.po not found.
not ok 1 - planned to run 12 but done_testing() expects 0
# Failed test 'planned to run 12 but done_testing() expects 0'
# at t/01-l10n.t line 56.
# Looks like you planned 12 tests but ran 1.
# Looks like you failed 1 test of 1 run.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 12/12 subtests
This patch skips the tests using skip() to count the skipped tests
properly.
(Next fix should be testing MO files instead of PO files.)1 parent 806012e commit 7273da3
1 file changed
+12
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
44 | 43 | | |
45 | | - | |
46 | | - | |
| 44 | + | |
| 45 | + | |
47 | 46 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
0 commit comments