# for expected errors: ok($ErrorText eq 'foo','Error-checking'); ok($ErrorLevel eq 'mail','Error-level-checking'); # for tests which shouldn't trigger one: ok($ErrorText eq '','Check for errors');