Subject: | test 30-exit.t fails on Windows |
Date: | Wed, 26 Aug 2020 10:45:37 +0000 |
To: | "bug-System-Command [...] rt.cpan.org" <bug-System-Command [...] rt.cpan.org> |
From: | Lisa Hansen <Lisa.Hansen [...] sas.com> |
I have attached the build log (build.log) for System-Command-1.121 that shows the 30-exit.t test fails saying:
t/30-exit.t .............. Can't find string terminator "'" anywhere before EOF at -e line 1.
t/30-exit.t .............. 1/?
# Failed test 'exit status not clobbered'
# at t/30-exit.t line 11.
# got: '255'
# expected: '3'
# Looks like you failed 1 test of 1.
t/30-exit.t .............. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
The error is with this call:
perl -Ilib -MSystem::Command -e ' my \$out = System::Command->new(qw($^X -e1))->stdout; exit 3; ';
I changed to use double quotes (") for Windows, instead of single quotes ('), and the test passes (t/30-exit.t .............. ok).
I have attached the updated test, as well.
(I tested on Windows 10 & Server 2016 using Strawberry Perl 5.20.2 & 5.30.3)
Lisa
-----------------------------------------------------------------------------------------------------------------
Please consider the environment before printing this e-mail.
Message body not shown because it is not plain text.
Message body is not shown because sender requested not to inline it.