Test for recent regression parsing Args()
authorThomas Sibley <tsibley@cpan.org>
Fri, 6 Nov 2015 17:43:43 +0000 (09:43 -0800)
committerMatt S Trout <mst@shadowcat.co.uk>
Sat, 7 Nov 2015 05:13:42 +0000 (05:13 +0000)
commit1c20c63931df63b579c27cf822bc933211d33df9
tree6fb3a2c0fd2222075c92a5f189f75ff23aa90f30
parentd47640840f28d5fd03cd9606946f1b35cde805c6
Test for recent regression parsing Args()

Args() started parsing as Args('') instead of Args, which in
DispatchType::Chained->list's debugging output ends up causing the
equivalent of this to run:

    ("*") x ~0

The result is Perl throwing an "Out of memory during list extend" error.
Fix to follow.

NB: Using the normalized_arg_number (where ~0 stands in for ∞) for this
debugging output is dubious, but there's not a clear cut revert as the
changes which got us there are spread across multiple commits related to
the new typed Args support.  I'm saving any change to the use of
normalized_arg_number and list_extra_info for another time (and probably
another person), in favor of changing the least while fixing both the
Args() regression and the original Path() bug which precipitated it.
t/args-empty-parens-bug.t [new file with mode: 0644]
t/lib/TestAppArgsEmptyParens.pm [new file with mode: 0644]