Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ v1] test-mesh-crypto: Don't attempt to run test if AF_ALG is not available
@ 2026-05-22 16:49 Luiz Augusto von Dentz
  2026-05-22 18:46 ` [BlueZ,v1] " bluez.test.bot
  2026-05-26 15:40 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2026-05-22 16:49 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This make use of mesh_crypto_check_avail to check if AF_ALG is available
and if not just bail out which is similar to how test-crypto handles
when bt_crypto_new returns NULL.
---
 unit/test-mesh-crypto.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/unit/test-mesh-crypto.c b/unit/test-mesh-crypto.c
index 36cae70a68a4..24fbbba33298 100644
--- a/unit/test-mesh-crypto.c
+++ b/unit/test-mesh-crypto.c
@@ -2132,6 +2132,9 @@ int main(int argc, char *argv[])
 {
 	l_log_set_stderr();
 
+	if (!mesh_crypto_check_avail())
+		return 0;
+
 	/* Section 8.1 Sample Data Tests */
 	check_s1(&s8_1_1);
 	check_k1(&s8_1_2);
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-26 15:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-22 16:49 [PATCH BlueZ v1] test-mesh-crypto: Don't attempt to run test if AF_ALG is not available Luiz Augusto von Dentz
2026-05-22 18:46 ` [BlueZ,v1] " bluez.test.bot
2026-05-26 15:40 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox