aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2024-08-28 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2024-08-28 08:00:00 +0000
commit214e97e115ffc9f9cf56a3576be4bbcab95b07f7 (patch)
treef41ea04025364fdb2701f3c510a51917ceec20f5 /tests
parent0b3eff364979e9281c1d4fd9a090bdab5fde0d67 (diff)
downloadpam-214e97e115ffc9f9cf56a3576be4bbcab95b07f7.tar.gz
pam-214e97e115ffc9f9cf56a3576be4bbcab95b07f7.tar.bz2
pam-214e97e115ffc9f9cf56a3576be4bbcab95b07f7.zip
build: consistently include config.h unconditionally
Given that in most places config.h is included unconditionally, there is no point in keeping remaining HAVE_CONFIG_H checks. Public header files do not use config.h and therefore are not affected by this change anyway.
Diffstat (limited to 'tests')
-rw-r--r--tests/tst-dlopen.c4
-rw-r--r--tests/tst-pam_acct_mgmt.c2
-rw-r--r--tests/tst-pam_authenticate.c2
-rw-r--r--tests/tst-pam_chauthtok.c2
-rw-r--r--tests/tst-pam_close_session.c2
-rw-r--r--tests/tst-pam_end.c2
-rw-r--r--tests/tst-pam_fail_delay.c2
-rw-r--r--tests/tst-pam_get_item.c2
-rw-r--r--tests/tst-pam_get_user.c4
-rw-r--r--tests/tst-pam_getenvlist.c2
-rw-r--r--tests/tst-pam_mkargv.c4
-rw-r--r--tests/tst-pam_open_session.c2
-rw-r--r--tests/tst-pam_set_item.c2
-rw-r--r--tests/tst-pam_setcred.c2
-rw-r--r--tests/tst-pam_start.c2
-rw-r--r--tests/tst-pam_start_confdir.c2
16 files changed, 2 insertions, 36 deletions
diff --git a/tests/tst-dlopen.c b/tests/tst-dlopen.c
index 00e14543..cba3e9a8 100644
--- a/tests/tst-dlopen.c
+++ b/tests/tst-dlopen.c
@@ -7,9 +7,7 @@
(at your option) any later version.
*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
#include <dlfcn.h>
#include <stdio.h>
diff --git a/tests/tst-pam_acct_mgmt.c b/tests/tst-pam_acct_mgmt.c
index 1e8c4b4d..b355a97b 100644
--- a/tests/tst-pam_acct_mgmt.c
+++ b/tests/tst-pam_acct_mgmt.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <unistd.h>
diff --git a/tests/tst-pam_authenticate.c b/tests/tst-pam_authenticate.c
index 1d43ec3a..366a4b19 100644
--- a/tests/tst-pam_authenticate.c
+++ b/tests/tst-pam_authenticate.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <unistd.h>
diff --git a/tests/tst-pam_chauthtok.c b/tests/tst-pam_chauthtok.c
index 37ed83d3..5cf9a7e3 100644
--- a/tests/tst-pam_chauthtok.c
+++ b/tests/tst-pam_chauthtok.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <unistd.h>
diff --git a/tests/tst-pam_close_session.c b/tests/tst-pam_close_session.c
index 86187bb9..9954b75d 100644
--- a/tests/tst-pam_close_session.c
+++ b/tests/tst-pam_close_session.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <unistd.h>
diff --git a/tests/tst-pam_end.c b/tests/tst-pam_end.c
index d79df7c6..902ae717 100644
--- a/tests/tst-pam_end.c
+++ b/tests/tst-pam_end.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <unistd.h>
diff --git a/tests/tst-pam_fail_delay.c b/tests/tst-pam_fail_delay.c
index f166ec0d..0126af93 100644
--- a/tests/tst-pam_fail_delay.c
+++ b/tests/tst-pam_fail_delay.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <unistd.h>
diff --git a/tests/tst-pam_get_item.c b/tests/tst-pam_get_item.c
index c6e3d9fa..cfb2a326 100644
--- a/tests/tst-pam_get_item.c
+++ b/tests/tst-pam_get_item.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <unistd.h>
diff --git a/tests/tst-pam_get_user.c b/tests/tst-pam_get_user.c
index 16f31236..916c6cc6 100644
--- a/tests/tst-pam_get_user.c
+++ b/tests/tst-pam_get_user.c
@@ -31,10 +31,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#include <config.h>
#include <stdio.h>
diff --git a/tests/tst-pam_getenvlist.c b/tests/tst-pam_getenvlist.c
index d6abac91..4e90c0ca 100644
--- a/tests/tst-pam_getenvlist.c
+++ b/tests/tst-pam_getenvlist.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <unistd.h>
diff --git a/tests/tst-pam_mkargv.c b/tests/tst-pam_mkargv.c
index 17a5a854..25d07cc4 100644
--- a/tests/tst-pam_mkargv.c
+++ b/tests/tst-pam_mkargv.c
@@ -6,9 +6,7 @@
the Free Software Foundation in version 2 of the License.
*/
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
#include <stdio.h>
#include <string.h>
diff --git a/tests/tst-pam_open_session.c b/tests/tst-pam_open_session.c
index 771ca35c..5ff91b87 100644
--- a/tests/tst-pam_open_session.c
+++ b/tests/tst-pam_open_session.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <unistd.h>
diff --git a/tests/tst-pam_set_item.c b/tests/tst-pam_set_item.c
index 607fbf28..b7f21fbc 100644
--- a/tests/tst-pam_set_item.c
+++ b/tests/tst-pam_set_item.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <unistd.h>
diff --git a/tests/tst-pam_setcred.c b/tests/tst-pam_setcred.c
index 917d4d05..c878d64f 100644
--- a/tests/tst-pam_setcred.c
+++ b/tests/tst-pam_setcred.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <unistd.h>
diff --git a/tests/tst-pam_start.c b/tests/tst-pam_start.c
index 23af4fe8..728eafe1 100644
--- a/tests/tst-pam_start.c
+++ b/tests/tst-pam_start.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <unistd.h>
diff --git a/tests/tst-pam_start_confdir.c b/tests/tst-pam_start_confdir.c
index b57ea573..cb2c5704 100644
--- a/tests/tst-pam_start_confdir.c
+++ b/tests/tst-pam_start_confdir.c
@@ -31,9 +31,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include <stdio.h>
#include <stdlib.h>