ARB
|
#include <cstdlib>
#include <cstdio>
Go to the source code of this file.
Classes | |
struct | UnitTest_simple |
struct | UnitTester |
Macros | |
#define | FLAGS_DIR "flags" |
#define | FLAGS_EXT "flag" |
Typedefs | |
typedef void(* | UnitTest_function )() |
Enumerations | |
enum | UnitTestResult { TEST_OK, TEST_TRAPPED, TEST_FAILED_POSTCONDITION, TEST_INTERRUPTED, TEST_THREW, TEST_INVALID, TEST_UNKNOWN_RESULT } |
Functions | |
UnitTestResult | execute_guarded (UnitTest_function fun, long *duration_usec, long max_allowed_duration_ms, bool detect_environment_calls) |
void | sleepms (long ms) |
Variables | |
const long | SECONDS = 1000 |
const long | MINUTES = 60*SECONDS |
const long | MAX_EXEC_MS_NORMAL = 30 * MINUTES |
const long | MAX_EXEC_MS_SLOW = 45 * MINUTES |
const long | MAX_EXEC_MS_ENV = 45 * MINUTES |
const long | MAX_EXEC_MS_VGSYS = 45 * MINUTES |
const long | WARN_SLOW_ABOVE_MS = 30 * MINUTES |
#define FLAGS_DIR "flags" |
Definition at line 76 of file UnitTester.hxx.
Referenced by flagDir().
#define FLAGS_EXT "flag" |
Definition at line 77 of file UnitTester.hxx.
typedef void(* UnitTest_function)() |
Definition at line 22 of file UnitTester.hxx.
enum UnitTestResult |
Enumerator | |
---|---|
TEST_OK | |
TEST_TRAPPED | |
TEST_FAILED_POSTCONDITION | |
TEST_INTERRUPTED | |
TEST_THREW | |
TEST_INVALID | |
TEST_UNKNOWN_RESULT |
Definition at line 24 of file UnitTester.hxx.
UnitTestResult execute_guarded | ( | UnitTest_function | fun, |
long * | duration_usec, | ||
long | max_allowed_duration_ms, | ||
bool | detect_environment_calls | ||
) |
Definition at line 403 of file UnitTester.cxx.
References execute_guarded_ClientCode(), EXIT_FAILURE, fflush(), result, Globals::running_on_valgrind, and TEST_THREW.
void sleepms | ( | long | ms | ) |
Definition at line 354 of file UnitTester.cxx.
References ARB_sleep(), MS, and SEC.
Referenced by Mutex::Mutex(), and FunInfo::switch_to().
const long SECONDS = 1000 |
Definition at line 52 of file UnitTester.hxx.
Definition at line 53 of file UnitTester.hxx.
Definition at line 68 of file UnitTester.hxx.
Definition at line 69 of file UnitTester.hxx.
Referenced by Mutex::Mutex().
Definition at line 70 of file UnitTester.hxx.
Definition at line 71 of file UnitTester.hxx.
Definition at line 72 of file UnitTester.hxx.