aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan
diff options
context:
space:
mode:
authorThomas Egerer <thomas.egerer@secunet.com>2017-02-10 15:27:11 +0100
committerTobias Brunner <tobias@strongswan.org>2017-02-14 10:41:42 +0100
commit8a0bbb9355faeb287d08707233427cf47baef4ff (patch)
treefa8cf40c1fdff30393fe22fc4837d8ebc7a1cad5 /src/libstrongswan
parent3ff5de05b3f7184f3c381fb9f44c15bf029fe997 (diff)
downloadstrongswan-8a0bbb9355faeb287d08707233427cf47baef4ff.tar.bz2
strongswan-8a0bbb9355faeb287d08707233427cf47baef4ff.tar.xz
unit-tests: Allow default test timeout to be configured via compile option
Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
Diffstat (limited to 'src/libstrongswan')
-rw-r--r--src/libstrongswan/tests/test_suite.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstrongswan/tests/test_suite.h b/src/libstrongswan/tests/test_suite.h
index aedd8c011..66c68465a 100644
--- a/src/libstrongswan/tests/test_suite.h
+++ b/src/libstrongswan/tests/test_suite.h
@@ -39,7 +39,9 @@ typedef struct test_fixture_t test_fixture_t;
/**
* Default timeout for a single test function
*/
+#ifndef TEST_FUNCTION_DEFAULT_TIMEOUT
#define TEST_FUNCTION_DEFAULT_TIMEOUT 2
+#endif
/**
* Test function implementation