# New Ticket Created by Andy Dougherty
# Please include the string: [perl #47395]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=47395 >
On a fresh checkout today, the new test (new since last time I tried
parrot, anyway) t/configure/115-auto-warnings.t fails with the following
error message:
t/configure/115-auto_warnings................
# Failed test (t/configure/115-auto_warnings.t at line 37)
# got: undef
# expected: '1'
# Looks like you failed 1 test of 4.
dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 4
Failed 1/4 tests, 75.00% okay
Here's what's happening: The test does the following:
$conf->data->set('cc', 'cc');
$conf->data->set('ccflags', '-I/usr/include');
$warning = "-Wall";
my $rv = auto::warnings::try_warning($step, $conf, $warning);
is( $rv, 1, "Got expected exit code of 1" );
This *assumes* that I have a compiler named 'cc', and that the compiler
named 'cc' accepts a '-Wall' argument. Neither assumption is necessarily
correct. The only safe assumption for a compiler is the one determined
when Configure.pl ran. I can think of no safe assumption for a warning
flag accepted by all compilers from all vendors.
--
Andy Dougherty [EMAIL PROTECTED]