Skip to content

Commit f841119

Browse files
committed
Add missing include of config.h in tests
Problem: A number of test C files did not include config.h. It should be included if the test code uses internal libraries to aid in testing (log, xzmalloc, ccan, etc.). Globally add it when it is missing. Fixes #5167
1 parent 6531d90 commit f841119

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+152
-2
lines changed

src/common/libeventlog/test/eventlog.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
* SPDX-License-Identifier: LGPL-3.0
99
\************************************************************/
1010

11+
#if HAVE_CONFIG_H
12+
#include "config.h"
13+
#endif
1114
#include <errno.h>
1215
#include <string.h>
1316
#include <stdarg.h>

src/common/libflux/test/buffer.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
* SPDX-License-Identifier: LGPL-3.0
99
\************************************************************/
1010

11+
#if HAVE_CONFIG_H
12+
#include "config.h"
13+
#endif
1114
#include <stdio.h>
1215
#include <stdlib.h>
1316
#include <string.h>

src/common/libflux/test/msg_handler.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
* SPDX-License-Identifier: LGPL-3.0
99
\************************************************************/
1010

11+
#if HAVE_CONFIG_H
12+
#include "config.h"
13+
#endif
1114
#include <flux/core.h>
1215

1316
#include "src/common/libflux/msg_handler.h"

src/common/libflux/test/panic.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
* SPDX-License-Identifier: LGPL-3.0
99
\************************************************************/
1010

11+
#if HAVE_CONFIG_H
12+
#include "config.h"
13+
#endif
1114
#include <errno.h>
1215
#include <string.h>
1316
#include <flux/core.h>

src/common/libflux/test/plugin.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
* SPDX-License-Identifier: LGPL-3.0
99
\************************************************************/
1010

11+
#if HAVE_CONFIG_H
12+
#include "config.h"
13+
#endif
1114
#include <string.h>
1215
#include <errno.h>
1316

src/common/libflux/test/reactor.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
* SPDX-License-Identifier: LGPL-3.0
99
\************************************************************/
1010

11+
#if HAVE_CONFIG_H
12+
#include "config.h"
13+
#endif
1114
#include <errno.h>
1215
#include <sys/types.h>
1316
#include <sys/socket.h>

src/common/libflux/test/request.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
* SPDX-License-Identifier: LGPL-3.0
99
\************************************************************/
1010

11+
#if HAVE_CONFIG_H
12+
#include "config.h"
13+
#endif
1114
#include <errno.h>
1215
#include <string.h>
1316

src/common/libflux/test/response.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
* SPDX-License-Identifier: LGPL-3.0
99
\************************************************************/
1010

11+
#if HAVE_CONFIG_H
12+
#include "config.h"
13+
#endif
1114
#include <string.h>
1215
#include <errno.h>
1316
#include <flux/core.h>

src/common/libflux/test/rpc_security.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
* SPDX-License-Identifier: LGPL-3.0
99
\************************************************************/
1010

11+
#if HAVE_CONFIG_H
12+
#include "config.h"
13+
#endif
1114
#include <errno.h>
1215
#include <flux/core.h>
1316
#include <inttypes.h>

src/common/libflux/test/tagpool.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
* SPDX-License-Identifier: LGPL-3.0
99
\************************************************************/
1010

11+
#if HAVE_CONFIG_H
12+
#include "config.h"
13+
#endif
14+
1115
#include "src/common/libflux/message.h"
1216
#include "src/common/libflux/tagpool.h"
1317
#include "src/common/libtap/tap.h"

0 commit comments

Comments
 (0)