Skip to contentSkip to conversation

unit: add checksum/random check for test-dpp

PATCH Applied James Prestwood 2 participants 2 messages Jan 10, 2022

lore
Share & tools
lore

James Prestwood

author
#0 lore raw

PATCH 1/1 unit: add checksum/random check for test-dpp

---
 unit/test-dpp.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
unit/test-dpp.c +3 -1
index 1d4846c7..c40fd8b5 100644
@@ -143,7 +143,9 @@ int main(int argc, char *argv[])
 {
 	l_test_init(&argc, &argv);
 
-	l_test_add("DPP test key derivation", test_key_derivation, NULL);
+	if (l_checksum_is_supported(L_CHECKSUM_SHA256, true) &&
+						l_getrandom_is_supported())
+		l_test_add("DPP test key derivation", test_key_derivation, NULL);
 
 	return l_test_run();
 }
Signature · 1 line
2.31.1
Applied
#1 lore raw

Hi James,

Quoted 4 lines · James Prestwood
---
  unit/test-dpp.c | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)

Applied, thanks.

Regards,
-Denis