diff options
| author | J08nY | 2018-01-19 17:45:24 +0100 |
|---|---|---|
| committer | J08nY | 2018-01-19 17:45:24 +0100 |
| commit | cde38f8c4ed443af6d0074e3e5294029246c2774 (patch) | |
| tree | 99c762a32a94cb331f664dbbc43be7a55a7bec8d /test | |
| parent | 77a4a7c2af7aad72e699018fcda8e4cb52d377e6 (diff) | |
| download | ecgen-cde38f8c4ed443af6d0074e3e5294029246c2774.tar.gz ecgen-cde38f8c4ed443af6d0074e3e5294029246c2774.tar.zst ecgen-cde38f8c4ed443af6d0074e3e5294029246c2774.zip | |
Add a set of Koblitz curves to be searched to speedup order computation.
- There is not a lot of Koblitz curves out there, so they can be
easily enumerated for the interesting field sizes and their
orders computed offline.
Diffstat (limited to 'test')
| -rw-r--r-- | test/src/util/test_timeout.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/test/src/util/test_timeout.c b/test/src/util/test_timeout.c index 307c3a8..21a13b0 100644 --- a/test/src/util/test_timeout.c +++ b/test/src/util/test_timeout.c @@ -4,8 +4,8 @@ */ #include <criterion/criterion.h> -#include "util/timeout.h" #include "test/default.h" +#include "util/timeout.h" void timeout_setup(void) { default_setup(); @@ -16,9 +16,8 @@ TestSuite(timeout, .init = timeout_setup, .fini = default_teardown); Test(timeout, test_timeout_stop) { bool done = false; - timeout_start(5) { - cr_assert_fail(); - } else { + timeout_start(5) { cr_assert_fail(); } + else { done = true; } timeout_stop(); @@ -27,9 +26,8 @@ Test(timeout, test_timeout_stop) { Test(timeout, test_timeout_handle) { bool done = false; - timeout_start(1) { - done = true; - } else { + timeout_start(1) { done = true; } + else { sleep(2); } cr_assert(done, ); |
