Skip to content

Commit

Permalink
tests: include passkey test code only if passkey is built
Browse files Browse the repository at this point in the history
Otherwise `make check` fails.

Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
(cherry picked from commit 725c554)
  • Loading branch information
pbrezina committed Sep 7, 2023
1 parent c84689d commit a62efb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tests/cmocka/test_pam_srv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a62efb7

Please sign in to comment.