Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TAP::Parser::SourceHandler::File fails if one and only one extensions option is specified #69

Open
uasi opened this issue Jun 22, 2017 · 1 comment

Comments

@uasi
Copy link
Contributor

uasi commented Jun 22, 2017

prove --source File --file-option extensions=.txt ./tap.txt fails, while prove --source File --file-option extensions=.txt --file-option extensions=.tmp ./tap.txt does not.

-> ao% perl -v | grep version
This is perl 5, version 24, subversion 1 (v5.24.1) built for darwin-thread-multi-2level
-> ao% perl -MTAP::Harness -E 'say TAP::Harness->VERSION'
3.36_01
-> ao% cat tap.txt
1..1
ok 1
-> ao% prove --source File --file-option extensions=.txt ./tap.txt
Can't use string (".txt") as an ARRAY ref while "strict refs" in use at /usr/local/Cellar/perl/5.24.1/lib/perl5/5.24.1/TAP/Parser/SourceHandler/File.pm line 74.
-> ao% prove --source File --file-option extensions=.txt --file-option extensions=.tmp ./tap.txt
./tap.txt .. ok
All tests successful.
Files=1, Tests=1,  0 wallclock secs ( 0.01 usr +  0.00 sys =  0.01 CPU)
Result: PASS
@Leont
Copy link
Member

Leont commented Jun 22, 2017

That is rather disappointing…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants