dagolden / Capture-Tiny

(Perl) Capture STDOUT and STDERR from Perl, XS or external programs
http://search.cpan.org/dist/Capture-Tiny/
39 stars 19 forks source link

tests fail sporadically on a ubuntu vm with perl 5.18.2 #43

Closed gideondsouza closed 8 years ago

gideondsouza commented 8 years ago

I'm really having an issue here trying to setup an old Dancer (not Dancer2) app. It fails to install deps when I use cpanm to install Dancer. The first thing to fail seems to be Capture::Tiny. Any help would be appreciated, feel like I'm doing something more basic wrong here. I've not in the perl scene for a while now 😢

build.txt

xdg commented 8 years ago

Pretty clearly, the warnings that perl is generating are interfering with the expected test output:

#   Failed test 'capture|sys|empty|unicode - got STDERR'
#   at t/lib/Cases.pm line 22.
#          got: 'perl: warning: Setting locale failed.
# perl: warning: Please check that your locale settings:
#   LANGUAGE = (unset),
#   LC_ALL = (unset),
#   LC_CTYPE = "UTF-8",
#   LANG = "en_US.UTF-8"
#     are supported and installed on your system.
# perl: warning: Falling back to the standard locale ("C").
# '
#     expected: ''

I'll investigate if it's possible to suppress that warning, but you can fix it by fixing your environment so that perl stops complaining.

gideondsouza commented 8 years ago

Hey @xdg. Thanks for the reply. I'm working on fixing the environment 👍

You seem to have added a fix but is it on cpan? When I do a cpanm install Captue::Tiny it still fails with test failures.

Here is a log again:

build2.txt

Anyway, thanks a million for looking at this 😄

xdg commented 8 years ago

The stable isn't released yet but you can use the --dev flag for cpanm. On May 3, 2016 10:05 AM, "Gideon Israel Dsouza" notifications@github.com wrote:

hey @xdg https://github.com/xdg is this fixed and uploaded to cpan? When I do a cpanm install Capture::Tiny it still fails with test failures.

Here is a log again:

build2.txt https://github.com/dagolden/Capture-Tiny/files/247002/build2.txt

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/dagolden/Capture-Tiny/issues/43#issuecomment-216537883

gideondsouza commented 8 years ago

Ah yep. Folks at IRC noticed this :) I fixed the environment and everything works. Really appreciate the love ❤️ of you perl devs that I've forgotten, besides forgetting some perl too :/