#1124: t/op/arithmetics_pms.t is skipping bigint/bignum test even when gmp is
available
---------------------+------------------------------------------------------
Reporter: mikehh | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: testing | Version: 1.6.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
---------------------+------------------------------------------------------
The test t/op/arithmetics_pms.t is skipping bigint/bignum test even when
gmp is available
the relevant code is:
{{{
.sub main :main
.include 'test_more.pir'
.include "iglobals.pasm"
plan(68)
# Don't check BigInt or BigNum without gmp
.local pmc interp # a handle to our interpreter object.
interp = getinterp
.local pmc config
config = interp[.IGLOBALS_CONFIG_HASH]
.local int gmp
gmp = config['gmp']
run_tests_for('Integer')
run_tests_for('Float')
if gmp goto do_big_ones
skip( 34, "will not test BigInt or BigNum without gmp" )
goto end
do_big_ones:
run_tests_for('BigInt')
run_tests_for('BigNum')
end:
.end
}}}
in t/pmc/bigint.t we have:
{{{
if ( $PConfig{gmp} ) {
plan tests => 44;
}
else {
plan skip_all => "No BigInt Lib configured";
}
}}}
which works fine for me, so in this instance $PConfig{gmp} is defined
whereas in the pir code it is not picking it up.
checking further
if I can just figure out how to iterate over and list the key/value pairs
from config = interp[.IGLOBALS_CONFIG_HASH]
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1124>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets