inline test_info::test_info(const char* n, void (*p)()) { name = n; proc = p; add_new_test(*this); }
/** * Supplied for backwards compatibility, all tests are now fork tests * * Add a new test to the given problem with a fork test, given the function to test * A fork test means that the program will fork off and test and see if the function completes * in 30 seconds. If it does not, it fails the test. * * @param problem the problem to which to add the test * @param description a description of the test to add to the problem * @param points the number of points to attribute to the test * @param test_function the function that is called and associated with this test */ void add_new_fork_test(PROBLEM* problem, const char* description, double points, void (*test_function)() ) { add_new_test(problem, description, points, test_function); }