Skip Menu |

This queue is for tickets about the CLI-Startup CPAN distribution.

Report information
The Basics
Id: 109091
Status: resolved
Worked: 30 min
Priority: 0/
Queue: CLI-Startup

People
Owner: len.budney [...] gmail.com
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.16
Fixed in:
  • 0.17
  • 0.18



Subject: Tests fail (with latest Getopt::Long)
t/getopts.t fails: # Failed test 'Incrementable options' # at t/getopts.t line 40. # Looks like you failed 1 test of 6. t/getopts.t ....... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/6 subtests Statistical analysis suggests that the failure is caused by a change in Getopt::Long 2.48: **************************************************************** Regression 'mod:Getopt::Long' **************************************************************** Name Theta StdErr T-stat [0='const'] 1.0000 0.0000 9624567693350304.00 [1='eq_2.42'] 0.0000 0.0000 0.00 [2='eq_2.43'] 0.0000 0.0000 0.00 [3='eq_2.45'] 0.0000 0.0000 0.00 [4='eq_2.46'] 0.0000 0.0000 0.00 [5='eq_2.47'] 0.0000 0.0000 0.00 [6='eq_2.48'] -1.0000 0.0000 -9130666621637984.00 R^2= 1.000, N= 48, K= 7
Thanks for this report! Apparently I was exploiting an undocumented "feature" to implement options that can both be incremented (as in -vvv) and set to an integer (as in --verbose=9). I simply pulled that out, which sadly makes it harder (impossible?) to implement a --verbose option that combines the two most common use cases.