Skip to content

Commit 43ad700

Browse files
author
Reini Urban
committed
fix wrong t/50reentrant_goto_sigsegv.t
wrong test count. wrong name check. install_accessor_with_shim installs a package prefix.
1 parent 3e46acf commit 43ad700

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

t/50reentrant_goto_sigsegv.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use strict;
66
use warnings;
77

88
use Class::XSAccessor;
9-
use Test::More tests => 14;
9+
use Test::More tests => 28;
1010

1111
my $shim_calls;
1212

@@ -33,7 +33,7 @@ sub install_accessor_with_shim {
3333
}
3434

3535
TODO: {
36-
todo_skip 'bug in perls < 5.8.9', 14 if $] < 5.008009;
36+
todo_skip 'bug in perls < 5.8.9', 28 if $] < 5.008009;
3737

3838
for my $name (qw/bar baz/) {
3939
for my $pass (1..2) {
@@ -48,11 +48,11 @@ TODO: {
4848
is ($shim_calls, 1, "Shim called ($name pass $pass)" );
4949

5050
eval { $obj->$name ('ack!') };
51-
ok ($@ =~ /Usage\: $name\(self\)/, "Exception from R/O accessor thrown ($name pass $pass)" );
51+
ok ($@ =~ /Usage\: Foo::$name\(self\)/, "Exception from R/O accessor thrown ($name pass $pass) $@" );
5252
is ($shim_calls, 2, "Shim called anyway ($name pass $pass)" );
5353

5454
eval { $obj->$name ('ick!') };
55-
ok ($@ =~ /Usage\: $name\(self\)/, "Exception from R/O accessor thrown once again ($name pass $pass)" );
55+
ok ($@ =~ /Usage\: Foo::$name\(self\)/, "Exception from R/O accessor thrown once again ($name pass $pass) $@" );
5656
is ($shim_calls, 3, "Shim called again ($name pass $pass)" );
5757
}
5858
}

0 commit comments

Comments
 (0)