summaryrefslogtreecommitdiff
path: root/ext/threads/t/err.t
diff options
context:
space:
mode:
Diffstat (limited to 'ext/threads/t/err.t')
-rw-r--r--ext/threads/t/err.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/threads/t/err.t b/ext/threads/t/err.t
index a0df7a53cd..9911187e2a 100644
--- a/ext/threads/t/err.t
+++ b/ext/threads/t/err.t
@@ -26,14 +26,14 @@ use_ok('threads');
no warnings 'threads';
# Create a thread that generates an error
-my $thr = threads->create(sub { my $x = 5/0; });
+my $thr = threads->create(sub { my $x = Foo->new(); });
# Check that thread returns 'undef'
my $result = $thr->join();
ok(! defined($result), 'thread died');
# Check error
-like($thr->error(), 'division by zero', 'thread error');
+like($thr->error(), q/Can't locate object method/, 'thread error');
# Create a thread that 'die's with an object