update ErrorHandler test to work from either . or sbin

This commit is contained in:
Colin Kuskie 2006-11-22 21:59:07 +00:00
parent 4da7c74740
commit 2843dd195b

View file

@ -134,7 +134,7 @@ is($eh->{'_debug_error'}, "ERROR\nMore errors\n", "error: new message internally
####################################################
is ($eh->getStackTrace, undef, 'no stack trace due to shallow depth, must be 2 deep for a stack trace');
like(&depth1(), qr/main,ErrorHandler\.t/, 'stack trace has correct information');
like(&depth1(), qr/main(.*?)ErrorHandler\.t/, 'stack trace has correct information');
sub depth1 {
return &depth2();