#1930: t/op/number.t: one test fails under --optimize on Darwin/PPC
---------------------+------------------------------------------------------
Reporter: jkeenan | Owner:
Type: bug | Status: new
Priority: minor | Milestone:
Component: testing | Version: 2.11.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
---------------------+------------------------------------------------------
Comment(by jkeenan):
I have been getting a slightly different failure on this test file today.
I configured with `cc=g++`. Normally, I configure with `cc=gcc`, while
using g++ for `cxx, link, ld`. I also configured with `--optimize`, which
translated into `-O3` because that's apparently what my Perl 5 had.
{{{
321: 'optimize' => '-O3',
322: 'optimize_provisional' => '-O3',
}}}
This was the output I got:
{{{
t/op/number.t ............................... Failed 1/126 subtests
...
t/op/number.t (Wstat: 0 Tests: 126 Failed: 1)
Failed test: 50
}}}
When I tried to use `prove`, this is what I got:
{{{
$ prove -v t/op/number.t
t/op/number.t .. dyld: Library not loaded: /usr/local/lib/libparrot.dylib
Referenced from: /Users/jimk/gitwork/parrot/./parrot
Reason: image not found
No subtests run
Test Summary Report
-------------------
t/op/number.t (Wstat: 5 Tests: 0 Failed: 0)
Non-zero wait status: 5
Parse errors: No plan found in TAP output
}}}
This is puzzling. When I say something like `prove t/dynoplibs/*.t` or
`prove t/dynpmc/*.t`, I get `dyld: Library not loaded:
/usr/local/lib/libparrot.dylib`, apparently because when `prove` runs
these files certain `.mak` files are not included, whereas `make
dynpmc_tests` and `make dynoplibs_tests` do the right thing.
But I wouldn't expect this kind of dynamic linking problem to show up in
something in ''t/op/''.
I reconfigured with g++ but without `--optimize` and all tests passed as
expected. So this is clearly a problem with `--optimize`.
By the way, here is the problematic test:
{{{
.sub test_mod_n
...
set $N0, 0.0
set $N1, 3.0
mod $N2, $N0, $N1
is( $N2, "0", 'mod_n' )
}}}
Suggestions?
Thank you very much.
kid51
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1930#comment:1>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets