aboutsummaryrefslogtreecommitdiff
path: root/test/test_runner.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-22 12:01:39 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-22 12:01:39 +0000
commit664d53715dcd7c9c266083179bae00ff19750557 (patch)
tree72fcdba0b1165fbf4e8decbeb87d671682294d7b /test/test_runner.hh
parentcac99b2cbe66cc254098be9eb859973a1d3b2b3c (diff)
downloadpaludis-664d53715dcd7c9c266083179bae00ff19750557.tar.gz
paludis-664d53715dcd7c9c266083179bae00ff19750557.tar.xz
Make the test errors more useful if we hit a timeout or segfault
Diffstat (limited to 'test/test_runner.hh')
-rw-r--r--test/test_runner.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_runner.hh b/test/test_runner.hh
index d02787f94..ba0ff019f 100644
--- a/test/test_runner.hh
+++ b/test/test_runner.hh
@@ -21,6 +21,8 @@
#ifndef PALUDIS_GUARD_TEST_TEST_RUNNER_HH
#define PALUDIS_GUARD_TEST_TEST_RUNNER_HH 1
+#include <paludis/attributes.hh>
+
/** \file
* Declarations for the default test runner.
*/
@@ -28,4 +30,10 @@
/// Main program.
int main(int, char *[]);
+/// Called if we take too long.
+void timeout_handler(int) PALUDIS_ATTRIBUTE((noreturn));
+
+/// Called if we get a segfault.
+void segfault_handler(int) PALUDIS_ATTRIBUTE((noreturn));
+
#endif