3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-21 22:09:23 +01:00

unit: pin generation test depends on getrandom

Turn this test off if the kernel doesn't have it
This commit is contained in:
Denis Kenzior 2018-01-24 09:17:00 -06:00
parent f91380c195
commit 9e0d11f948

View File

@ -2236,7 +2236,9 @@ int main(int argc, char *argv[])
l_test_add("/wsc/pin/valid pin", wsc_test_pin_valid, NULL);
l_test_add("/wsc/pin/valid checksum", wsc_test_pin_checksum, NULL);
l_test_add("/wsc/pin/generate", wsc_test_pin_generate, NULL);
if (l_getrandom_is_supported())
l_test_add("/wsc/pin/generate", wsc_test_pin_generate, NULL);
l_test_add("/wsc/gen_uuid/1", wsc_test_uuid_from_addr,
&uuid_from_addr_data_1);