Help for this page

Select Code to Download


  1. or download this
    [...] # Init tests, prepare everything, etc.
    require 'error.inc'; # Here are the regular handling functions defined
    +, Log_Error is one of them
    ...
      return 1;
     }
    };
    
  2. or download this
    # 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');