This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Eliminate must_die() from ReTest.pl, which is only used 3 times in pat.t
authorNicholas Clark <nick@ccl4.org>
Sat, 5 Mar 2011 10:44:50 +0000 (10:44 +0000)
committerNicholas Clark <nick@ccl4.org>
Sat, 5 Mar 2011 20:26:10 +0000 (20:26 +0000)
commitcb124425fee7b414700604d7521979e2bfaf49c5
tree5b0b8fb5b407e250bf95c7207cdbc9dc429c8d39
parent19d6612dd7b4d6a9dc8581f9a07338cb41b9d0b5
Eliminate must_die() from ReTest.pl, which is only used 3 times in pat.t

Replace it with is(eval ..., undef); like($@, $error);

It's not viable to emulate Test::Exception's throws_ok() in test.pl, as it
only takes a code reference, whereas these tests are for compilation errors
and so use string eval.
t/re/ReTest.pl
t/re/pat.t