From a62efb76eec01ebe748bf202025fc1b29a337dd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ezina?= Date: Thu, 7 Sep 2023 12:07:11 +0200 Subject: [PATCH] tests: include passkey test code only if passkey is built Otherwise `make check` fails. Reviewed-by: Alexey Tikhonov Reviewed-by: Iker Pedrosa (cherry picked from commit 725c5541d4ee8b47b3877ede2599cf60d7de21d3) --- src/tests/cmocka/test_pam_srv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/cmocka/test_pam_srv.c b/src/tests/cmocka/test_pam_srv.c index 6c60a5aca6a..6578a7cdab9 100644 --- a/src/tests/cmocka/test_pam_srv.c +++ b/src/tests/cmocka/test_pam_srv.c @@ -337,6 +337,7 @@ static int pam_test_setup(void **state) return 0; } +#ifdef BUILD_PASSKEY static int pam_test_setup_passkey(void **state) { struct sss_test_conf_param dom_params[] = { @@ -364,6 +365,7 @@ static int pam_test_setup_passkey(void **state) pam_test_setup_common(); return 0; } +#endif #ifdef HAVE_TEST_CA static int pam_test_setup_no_verification(void **state)