commit 700b7de175e7bcd000c9e03e0809e3972d9f964b
parent 801188885c08d94d90731c5c126f14d1319bcb22
Author: James Prestwood <james.prestwood@linux.intel.com>
Date: Thu, 23 Aug 2018 12:38:55 -0700
unit: check random support on test-sae
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git 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();
}