From fd86d9596b3f979e1c83376ad55a7889c452475d Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Fri, 9 Apr 2021 13:05:33 +0200 Subject: [PATCH] tests: only run mysql tests if HAVE_MYSQL is defined --- tests/pam_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pam_test.c b/tests/pam_test.c index 530ab71..2dbb590 100644 --- a/tests/pam_test.c +++ b/tests/pam_test.c @@ -447,7 +447,7 @@ int main(void) { goto out; } #endif -#ifdef RUN_MYSQL_TESTS +#if defined(RUN_MYSQL_TESTS) && defined(HAVE_MYSQL) if(test_authenticate_mysql1() != PAM_SUCCESS) { ret = 2001; goto out;