test failures on opensolaris

0 views
Skip to first unread message

ashleydev

unread,
Jul 2, 2009, 7:35:03 PM7/2/09
to PoCo::MQ
Is it a know issue that PoCoMq doesn't run on opensolaris? Test 05*
and 08* both hang:


-------------------
~/.cpan/build/POE-Component-MessageQueue-0.2.6-u1CqvA$ make test

...


t/01_load.t .................. ok
t/02_client.t ................ ok
t/03_queue.t ................. skipped: This API has changed a lot,
needs cleanup.
t/04_message.t ............... ok
t/05_storage_api.t ........... 11/106
# Failed test 'DBI: claim_and_retrieve: /queue/grapefruit'
# at t/05_storage_api.t line 94.
# got: '0'
# expected: '50'

# Failed test 'DBI: disown_destination: /queue/grapefruit'
# at t/05_storage_api.t line 94.
# got: '0'
# expected: '50'

# Failed test 'DBI: claim_and_retrieve: /queue/baz'
# at t/05_storage_api.t line 94.
# got: '0'
# expected: '50'

# Failed test 'DBI: disown_destination: /queue/baz'
# at t/05_storage_api.t line 94.
# got: '0'
# expected: '50'

# Failed test 'DBI: claim_and_retrieve: /queue/bar'
# at t/05_storage_api.t line 94.
# got: '0'
# expected: '50'
t/05_storage_api.t ........... 16/106
# Failed test 'DBI: disown_destination: /queue/bar'
# at t/05_storage_api.t line 94.
# got: '0'
# expected: '50'

# Failed test 'DBI: claim_and_retrieve: /queue/foo'
# at t/05_storage_api.t line 94.
# got: '0'
# expected: '50'

# Failed test 'DBI: disown_destination: /queue/foo'
# at t/05_storage_api.t line 94.
# got: '0'
# expected: '50'

David Snopek

unread,
Jul 4, 2009, 12:46:23 PM7/4/09
to poc...@googlegroups.com
ashleydev,

Its not a known issue, but I'm not terribly surprised. Those tests
are kind of "delicate". It is entirely possibly that PoCo::MQ works
fine, but just the tests are buggy under opensolaris.

We had a few minor issues making the tests run correctly on both Linux
and MacOS awhile back. They were easy enough to solve because between
Paul and I, we had access to both OS's. I'm not sure I can do much
without having access to an opensolaris box to hack on.

For mailing list archival purposes, what version of opensolaris and
perl are you running? Also, have you tried running PoCo::MQ and
seeing if there are, in fact, any problems? I'd suggest doing
something like the following as a quick smoke test:

In terminal window #1:

$ perl -Ilib bin/mq.pl --data-dir /tmp/perl_mq --log-conf log.conf

In terminal window #2:

$ perl examples/test_recv.pl

In terminal window #3:

$ perl examples/test_send.pl -c 10

You may have to install some additional dependancies from CPAN to get
the example scripts to run. But assuming everything is working, you
should see the word "monkey" written 10 times in terminal #2 and
several log messages in terminal #1. This should show that the most
basic operation is working. More sophisticate features that the unit
tests check could still be broken.

Hope this helps!

Happy Hacking,
David.

2009/7/2, ashleydev <the.as...@gmail.com>:
--
Open Source Hacker and Language Learner
http://www.hackyourlife.org/
Reply all
Reply to author
Forward
0 new messages