diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-06-28 20:56:33 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-06-28 21:10:30 +0100 |
commit | 758a18b354cefca841536c7d91f8f5758456f72f (patch) | |
tree | 62eb0d4276053bfa736da453fb267bca0a6f797c /test/cairo-test.h | |
parent | f7021d8f3e59d1f7fa77135366bbbd6845dff684 (diff) | |
download | cairo-758a18b354cefca841536c7d91f8f5758456f72f.tar.gz |
[test] Timeout support for tests
Enforce that each test must render within 60 seconds or be considered to
have hit an infinite loop and be reported as a CRASH. The timeout value is
adjustable via CAIRO_TEST_TIMEOUT -- a value of 0 will disable.
Diffstat (limited to 'test/cairo-test.h')
-rw-r--r-- | test/cairo-test.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/cairo-test.h b/test/cairo-test.h index d644d96b2..db02eef2d 100644 --- a/test/cairo-test.h +++ b/test/cairo-test.h @@ -179,6 +179,8 @@ struct _cairo_test_context { int malloc_failure; int last_fault_count; + int timeout; + int thread; }; |