Posted on 2005-08-15 19:37:48-07
by adrianhin response to 893
Re: Test::Exception and XS code
As Yitzchak Scott-Thoennes correctly points out this is nothing to do with XS, but with Test::Exception not being used at compile time. You can get around this by either wrapping the conditional loading up in a BEGIN block:
BEGIN {
eval "use Test::Exception";
plan skip_all => "Test::Exception needed" if $@;
}
or by calling the Test::Exception functions without prototypes. I've added a note to make this clearer in the documentation.