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

Latest version fails tests on CentOS 7 #36

Open
marwatk opened this issue Mar 15, 2021 · 1 comment
Open

Latest version fails tests on CentOS 7 #36

marwatk opened this issue Mar 15, 2021 · 1 comment

Comments

@marwatk
Copy link

marwatk commented Mar 15, 2021

It looks like the most recent version fails tests on CentOS 7. You can see the failure using a Docker like this:

docker build - <<EOF
FROM centos:7
RUN yum -y groups install "Development Tools";
RUN yum install -y cpanminus;
RUN cpanm --installdeps Getopt::Long::Descriptive
RUN cpanm -v Getopt::Long::Descriptive
EOF

The error is:

#8 2.120 #   Failed test 'got a warning'
#8 2.120 #   at t/descriptive.t line 454.
#8 2.120 #          got: '2'
#8 2.120 #     expected: '1'
#8 2.130 # Looks like you failed 1 test of 61.
#8 2.133 t/descriptive.t ........
#8 2.133 Dubious, test returned 1 (wstat 256, 0x100)
#8 2.133 Failed 1/61 subtests
#8 2.225 t/shortcircuit.t ....... ok
#8 2.312 t/zzz-check-breaks.t ... ok
#8 2.312
#8 2.312 Test Summary Report
#8 2.312 -------------------
#8 2.312 t/descriptive.t      (Wstat: 256 Tests: 61 Failed: 1)
#8 2.312   Failed test:  59
#8 2.312   Non-zero exit status: 1
#8 2.312 Failed 1/4 test programs. 1/75 subtests failed.

I haven't dived in to see what the actual problem is, yet.

FWIW the changes on App::Cmd also break CentOS 7 since its Perl is 5.16, but I haven't looked into what required the version bump there, either.

@rjbs
Copy link
Owner

rjbs commented Mar 16, 2021

I've made a new release of GLD that issues a diagnostic message when the number of warnings is not 1, indicating either that it received 0 or printing each warning. That will help, here, as I could not reproduce the problem on v5.16 (or otherwise).

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