Ticket #1124 (closed bug: fixed)
t/op/arithmetics_pmc.t is skipping bigint/bignum test even when gmp is available
| Reported by: | mikehh | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | testing | Version: | 1.6.0 |
| Severity: | medium | Keywords: | |
| Cc: | Language: | ||
| Patch status: | Platform: |
Description
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]
Change History
Note: See
TracTickets for help on using
tickets.
