Subject: | t/02-gld.t fails with recent Getopt::Long::Descriptive |
The test suite started to fail, probably if a new Getopt::Long::Descriptive is installed:
...
# Failed test 'usage text'
# at t/02-gld.t line 21.
# 'my-program [-psv] [long options...] <some-arg>
# -s STR --server STR the server to connect to
# -p INT --port INT the port to connect to
#
# -v --verbose print extra stuff
# --help print usage message and exit
# '
# doesn't match '(?^:my-program \[-psv\] \[long options\.\.\.\] <some-arg>
# \t-s( STR)? --server( STR)?\s* the server to connect to
# \t-p( INT)? --port( INT)?\s* the port to connect to
# \t\s*
# \t-v --verbose\s* print extra stuff
# \t--help\s* print usage message and exit)'
# Looks like you failed 1 test of 10.
t/02-gld.t ................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/10 subtests
...
It seems that this change is causing the problem:
https://metacpan.org/source/RJBS/Getopt-Long-Descriptive-0.102/Changes#L5
That is, there's no tab anymore in the empty usage line.