From 700b7de175e7bcd000c9e03e0809e3972d9f964b Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 23 Aug 2018 12:38:55 -0700 Subject: [PATCH] unit: check random support on test-sae --- unit/test-sae.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/unit/test-sae.c b/unit/test-sae.c index 3627e034..890b901c 100644 --- a/unit/test-sae.c +++ b/unit/test-sae.c @@ -551,6 +551,11 @@ int main(int argc, char *argv[]) { l_test_init(&argc, &argv); + if (!l_getrandom_is_supported()) { + l_info("l_getrandom not supported, skipping..."); + goto done; + } + l_test_add("SAE commit timeout", test_commit_timeout, NULL); l_test_add("SAE confirm timeout", test_confirm_timeout, NULL); l_test_add("SAE anti-clogging", test_clogging, NULL); @@ -563,5 +568,6 @@ int main(int argc, char *argv[]) l_test_add("SAE confirm after accept", test_confirm_after_accept, NULL); l_test_add("SAE end-to-end", test_end_to_end, NULL); +done: return l_test_run(); }