[Chicago-talk] dies_ok dies

Jay Strauss me at heyjay.com
Wed Dec 3 10:28:30 CST 2003

Hi, I'm doing:

dies_ok {$tws->connect(undef,10000,1)} 'expect to die';

which calls a bit of code that in fact dies (i.e. it does an:
.... or die "Error: 502...").  But the dies_ok doesn't trap it.  Instead
when I run the test I get:

[o901]:~/tradestudy/lib/perl/IB/TWS> ./01.t
ok 1 - use IB::TWS;
ok 2 - The object isa IB::TWS
Error: 502, Couldn't connect to TWS.  Confirm that "Enable ActiveX and
Socket Clients" is enabled on the "Settings" menu.
# Looks like your test died just after 2.

Maybe I misunderstand what dies_ok is supposed to do?


More information about the Chicago-talk mailing list