Skip to content

Commit

Permalink
Get more info out of eval failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Jan 15, 2015
1 parent cf01ee3 commit d3c9171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/grammar/19multidimarray.t
Expand Up @@ -6,7 +6,7 @@ use Test::More;

# Test multidimensional arrays as member data.

my $rv = eval <<'EOILCPP';
eval <<'EOILCPP';
use Inline CPP => q/
class Foo {
public:
Expand All @@ -25,7 +25,7 @@ EOILCPP
TODO: {
local $TODO = 'C++ multi-dimensional arrays as member data not supported.';

is( $rv, 1, 'Compilation completed without exception.' );
is( $@, '', 'Compilation completed without exception.' );

my $f = new_ok( 'Foo' );
can_ok( 'Foo', qw( new tl bl tr br ) );
Expand Down

0 comments on commit d3c9171

Please sign in to comment.