Branch: Tag:

2001-05-24

2001-05-24 18:17:03 by Henrik Grubbström (Grubba) <grubba@grubba.org>

The testsuite_test.pmod test now uses an error handler to hide to (intentional)
compilation errors.

Rev: src/testsuite.in:1.415

1: - test_true([["$Id: testsuite.in,v 1.414 2001/05/22 13:42:48 grubba Exp $"]]); + test_true([["$Id: testsuite.in,v 1.415 2001/05/24 18:17:03 grubba Exp $"]]);      cond([[all_constants()->_verify_internals]],   [[
835:   }    ");    +  // Compilation handler that hides compilation errors. +  class handler +  { +  void compile_error(string file, int line, string err) +  { +  // werror("file: %O, line: %O, err: %O\n", file, line, err); +  } +  }; +     // turn this on when the bug is found    // master()->set_inhibit_compile_errors(lambda(){});   
843:       catch {    compile_string("import \".\";\n" -  "int foo() { testsuite_test.efoo; }\n"); +  "int foo() { testsuite_test.efoo; }\n", +  "testsuite_test", handler());    };    return 0;   ]],0);