Skip to content

Commit efb9ee3

Browse files
committed
modules: Include config.h in all test files
Problem: By definition, all tests in the src/modules directory are through non-public interfaces, so all test files should include config.h. However, several did not. Add config.h to files that were missing them.
1 parent e0c9bfb commit efb9ee3

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/modules/job-exec/test/bulk-exec.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
* execution API.
1313
*/
1414

15-
#define _GNU_SOURCE 1
15+
#if HAVE_CONFIG_H
16+
#include "config.h"
17+
#endif
1618
#include <unistd.h>
1719
#include <assert.h>
1820
#include <signal.h>

src/modules/job-exec/test/rset.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/modules/kvs/test/waitqueue.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/modules/kvs/waitqueue.h"
1216
#include "src/common/libflux/message.h"
1317
#include "src/common/libtap/tap.h"

0 commit comments

Comments
 (0)