]> git.proxmox.com Git - mirror_lxc.git/commitdiff
tests: include config.h
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 2 Nov 2021 10:06:33 +0000 (11:06 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 2 Nov 2021 10:14:59 +0000 (11:14 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
41 files changed:
src/tests/aa.c
src/tests/api_reboot.c
src/tests/arch_parse.c
src/tests/attach.c
src/tests/basic.c
src/tests/cgpath.c
src/tests/clonetest.c
src/tests/concurrent.c
src/tests/config_jump_table.c
src/tests/console.c
src/tests/console_log.c
src/tests/containertests.c
src/tests/createtest.c
src/tests/criu_check_feature.c
src/tests/cve-2019-5736.c
src/tests/destroytest.c
src/tests/device_add_remove.c
src/tests/fuzz-lxc-cgroup-init.c
src/tests/fuzz-lxc-config-read.c
src/tests/fuzz-lxc-define-load.c
src/tests/get_item.c
src/tests/getkeys.c
src/tests/list.c
src/tests/locktests.c
src/tests/lxc-test-utils.c
src/tests/lxc_raw_clone.c
src/tests/lxcpath.c
src/tests/lxctest.h
src/tests/may_control.c
src/tests/mount_injection.c
src/tests/parse_config_file.c
src/tests/reboot.c
src/tests/rootfs_options.c
src/tests/saveconfig.c
src/tests/share_ns.c
src/tests/shortlived.c
src/tests/shutdowntest.c
src/tests/snapshot.c
src/tests/startone.c
src/tests/state_server.c
src/tests/sys_mixed.c

index 69808b6f3b8a5bb3167a436f6302c5c41b93cfcb..e288b46df0cd24b6dc0e51b5fd8350d1fa5e616d 100644 (file)
@@ -17,6 +17,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include "config.h"
+
 /* Test apparmor rules */
 #include <lxc/lxccontainer.h>
 #include "lxc/utils.h"
index af12d623744b0d27b0accac6cb2cf096d4a6ae67..2ab6872add0baca9208cbcc997a4e2abd052df9c 100644 (file)
@@ -16,6 +16,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include "config.h"
+
 #include <alloca.h>
 #include <stdio.h>
 #include <sched.h>
index 38ec972d34179192111dabc89780e8817e555fe9..6d72d664de32d6f723564128bc7c83faf6b4ddfa 100644 (file)
@@ -16,6 +16,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include "config.h"
+
 #include <errno.h>
 #include <signal.h>
 #include <stdio.h>
index 45c93390b04b5696c4cfda208d83e5c53208dd04..b695df35b977da9624c466179d7ae716f7e12b69 100644 (file)
@@ -19,6 +19,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include "config.h"
+
 #include <errno.h>
 #include <string.h>
 #include <unistd.h>
index 4e7a05fe9990093bf44a78ab56c12dca8c91c817..a691ca751d2df8c4ba8b56eab9b3b45bf57ccf3f 100644 (file)
@@ -17,6 +17,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include "config.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 
index 46ae0259d67419f08adc2fa987aab31f63e90c33..aff10b46db6b53a5326691783ff74f29149f67b5 100644 (file)
@@ -16,6 +16,9 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
+
+#include "config.h"
+
 #include <lxc/lxccontainer.h>
 
 #include <limits.h>
index f3a8e5b0b621f2de8c9c58f8c9d2c7241a3e5b8b..00e81fe1acf34411b14fee0c30e015643aa2ed60 100644 (file)
@@ -16,6 +16,9 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
+
+#include "config.h"
+
 #include <lxc/lxccontainer.h>
 
 #include <unistd.h>
index 87d2ae9784be494ddee2f775f34b652295d54a07..83ef393f48afe7eb282d34e377bba2a344db6ca4 100644 (file)
@@ -16,7 +16,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#define _GNU_SOURCE
+#include "config.h"
+
 #include <limits.h>
 #include <stdio.h>
 #include <pthread.h>
index 3f08fb9427aca293af3feb67e977b846bb0bd5ce..a0b966b3cedba12ef2e2fca3e9ba1451a5bdd7f0 100644 (file)
@@ -16,6 +16,9 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
+
+#include "config.h"
+
 #include <lxc/lxccontainer.h>
 
 #include <unistd.h>
index 9acd694746642614823857bf415c2a37fa68d273..f34c96bf544c3e715cf68eafb831f90e7cc3c375 100644 (file)
@@ -19,6 +19,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include "config.h"
+
 #include <lxc/lxccontainer.h>
 
 #include <errno.h>
index f0e31c9d53e6ae6128e9cb58c68f19a7eac6b4c9..77ca87deb0c1acd8c398a8e819147d7bdb060fb2 100644 (file)
@@ -16,7 +16,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#define __STDC_FORMAT_MACROS
+#include "config.h"
+
 #include <errno.h>
 #include <fcntl.h>
 #include <inttypes.h>
index 0fb6fbdfbfa9690c5572b95edb7f68d5e3c0c0d6..7bd5e92efc75b72b0a7a0e039b19dba9ccf0f8a8 100644 (file)
@@ -16,6 +16,9 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
+
+#include "config.h"
+
 #include <lxc/lxccontainer.h>
 
 #include <unistd.h>
index 53db119be453935389d6e5bbe14ff184bdac3630..f7ce78ba9e52c0ddaf0dcc3cac272ab633a60096 100644 (file)
@@ -16,6 +16,9 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
+
+#include "config.h"
+
 #include <lxc/lxccontainer.h>
 
 #include <unistd.h>
index 6ae4b1d403c7e8c0493ad9ad6d0b9c1ad4ade82c..c1b19c35bd71700f4a52a720591037ccf1774fce 100644 (file)
@@ -16,6 +16,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include "config.h"
+
 #include <string.h>
 #include <limits.h>
 
index 99e425bb0c3a13bd921284279ab612afc8ea92c7..c0cb4bc412a303b8959929da3e2726b422cf5912 100644 (file)
@@ -17,9 +17,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE 1
-#endif
+#include "config.h"
+
 #include <errno.h>
 #include <fcntl.h>
 #include <lxc/lxccontainer.h>
index 79549120e44294acfe1d5feefa024eeb0c0c295b..591a52b3b0850aeac5d352986a5b33029b22c8b5 100644 (file)
@@ -16,6 +16,9 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
+
+#include "config.h"
+
 #include <lxc/lxccontainer.h>
 
 #include <unistd.h>
index eb146090fdca97fad5f9e62cb8031652aeae0846..da6f536549da2a9b9c7e45d8a46b1ef662fec12c 100644 (file)
@@ -16,6 +16,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include "config.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <lxc/lxccontainer.h>
index 4e4053229d01b94abfbb1ae9d93c6c06155f2b3b..ab3087ef5a8955a06c818b6bd3aa38267194ebec 100644 (file)
@@ -1,5 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 
+#include "config.h"
+
 #include <stddef.h>
 #include <stdint.h>
 
index ab5aa601c0fb8c8e7792b9a847a22715b39d0ecc..41c5d533e2249b351a028be6d34290b6240d7d8e 100644 (file)
@@ -1,5 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 
+#include "config.h"
+
 #include <stddef.h>
 #include <stdint.h>
 
index 3f05b15c76e9e0ae61723a0cc9f88296f0f23c89..5a39fc9491eef14ab9afaeac03103d5190d264fd 100644 (file)
@@ -1,5 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 
+#include "config.h"
+
 #include <stddef.h>
 #include <stdint.h>
 
index e5836f3500a596a5cb4648a6874820960700eddc..f30478168d98bf19a50b8a1e806c12cac92ba137 100644 (file)
@@ -16,6 +16,9 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
+
+#include "config.h"
+
 #include <lxc/lxccontainer.h>
 
 #include <unistd.h>
index c9e240dfdbeae8e2e017be30987240b82b5ca376..4768b9ebd2e93c6ab4ef1724c3a27edda1cfa900 100644 (file)
@@ -17,6 +17,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include "config.h"
+
 #include <errno.h>
 #include <signal.h>
 #include <stdio.h>
index 293835756c6c1480066b631f08b2d2cfd510cd79..7ba2cb002e5354955819998082285bf90213f92c 100644 (file)
@@ -17,6 +17,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include "config.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 74cd48541c5933e506fc83f9026fc15b1a2e6e0d..4836d46df2a88111ce30aa088418564919fc3c0d 100644 (file)
@@ -16,6 +16,9 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
+
+#include "config.h"
+
 #include "lxc/lxclock.h"
 #include "config.h"
 #include <unistd.h>
index 96d23f35c62b959011016f7e5b3a4a7607614b6e..f10c1eba8e2982a3e7fdd2ff982388871407f0d3 100644 (file)
@@ -21,8 +21,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#define _GNU_SOURCE
-#define __STDC_FORMAT_MACROS
+#include "config.h"
+
 #include <errno.h>
 #include <fcntl.h>
 #include <inttypes.h>
index 6b845b640e1528e525bc84a55a61ff0e3fc092cd..1225d023d6b081c08f4acb05bb9fdbde1e2bec46 100644 (file)
@@ -21,8 +21,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#define _GNU_SOURCE
-#define __STDC_FORMAT_MACROS
+#include "config.h"
+
 #include <errno.h>
 #include <fcntl.h>
 #include <inttypes.h>
index b5f858895f0b0ca6b48c312ee3dd58a51c962ab9..9e87d6875b941648fe90effc7834b7e4a996598b 100644 (file)
@@ -16,6 +16,9 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
+
+#include "config.h"
+
 #include <lxc/lxccontainer.h>
 
 #include <unistd.h>
index 506168bfb5aedb2b5b1d8529b4b5b5e986d51a62..e63936d5f9452e790af2edeba5fd519925e28ad3 100644 (file)
@@ -24,6 +24,8 @@
 #ifndef __LXC_TEST_H_
 #define __LXC_TEST_H_
 
+#include "config.h"
+
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
index 88437140d94a9e8e372b92330c636cec43ada8dd..cb5378cad22b1e8c0bb546822ae157acab487e4c 100644 (file)
@@ -17,6 +17,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include "config.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <lxc/lxccontainer.h>
index c054558800955df342f76ed9a5b4eb836ddc6c60..64b1cb253d59592d64567017e914e41b4a24464b 100644 (file)
@@ -16,6 +16,7 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include "config.h"
 
 #include <fcntl.h>
 #include <stdio.h>
index d19e24ec9d20e2925b7fab72bfd6337061219ba1..990ce725693af1ce77702313f79c2e0a733bd177 100644 (file)
@@ -16,6 +16,9 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
+
+#include "config.h"
+
 #include <lxc/lxccontainer.h>
 
 #include <errno.h>
index 9e9db2277e5dac1295fd3779c75931c270f9c8cc..e16aabe2c5bac40d39696bf84e9ebb8c957be8c5 100644 (file)
@@ -16,6 +16,9 @@
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
+
+#include "config.h"
+
 #include <alloca.h>
 #include <stdio.h>
 #include <sched.h>
index 05cb3dda6ce56213da12729fe837533d21f559b3..55f86ab3d17527a5932d998fd5c2b40dc13fa267 100644 (file)
@@ -18,8 +18,6 @@
 
 #include "config.h"
 
-#define __STDC_FORMAT_MACROS
-
 #include <errno.h>
 #include <fcntl.h>
 #include <inttypes.h>
index c73240223d5456b005258aade79fad1febe335ea..41ca66224052e53c6606ac82dac7de7e4b8f482f 100644 (file)
@@ -16,6 +16,9 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
+
+#include "config.h"
+
 #include <lxc/lxccontainer.h>
 
 #include <unistd.h>
index 305f5cca4d54935732f9969d256e5845e22488f3..c46023f01866c5b1f20ae2f7ad7db166e9f9c6e3 100644 (file)
@@ -16,7 +16,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#define _GNU_SOURCE
+#include "config.h"
+
 #include <alloca.h>
 #include <errno.h>
 #include <pthread.h>
index 7c723ead27e5bf4653ba08fb24199276a5a9d3ed..f4a742f6d1a28b88b0899f094a386ac2c2415c7e 100644 (file)
@@ -16,6 +16,9 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
+
+#include "config.h"
+
 #include <lxc/lxccontainer.h>
 
 #include <unistd.h>
index cec6efc7bf307fe9e339d5f452d865703498e273..89e7c447ff6374d796f2a288b9167d259b59b88f 100644 (file)
@@ -17,6 +17,9 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
+
+#include "config.h"
+
 #include <lxc/lxccontainer.h>
 
 #include <unistd.h>
index e62230bc2fb50f3e93abc83c9ac51bac96c29bae..62440fe28441636f64ae4bcfb58ba1d8c5d11e31 100644 (file)
@@ -16,6 +16,9 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
+
+#include "config.h"
+
 #include <lxc/lxccontainer.h>
 
 #include <errno.h>
index de9af07f8f420db41abef907de013faa3a2148f9..5d5a23f4b20814543be7d987f1916c7aff5185af 100644 (file)
@@ -16,6 +16,9 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
+
+#include "config.h"
+
 #include <lxc/lxccontainer.h>
 
 #include <unistd.h>
index 3002888ed4d2d7f3160b42875dfde21b933b3ced..cf6fcc47c5b3809118c1e8cc66a3d7fa80f207bf 100644 (file)
@@ -16,6 +16,8 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include "config.h"
+
 #include <alloca.h>
 #include <errno.h>
 #include <pthread.h>
index 9716ac3d0c1b8459911964db19896123848dfc1c..b51f28c32351fa58bd819ddf98324a635bf33109 100644 (file)
@@ -18,8 +18,6 @@
 
 #include "config.h"
 
-#define __STDC_FORMAT_MACROS
-
 #include <errno.h>
 #include <fcntl.h>
 #include <inttypes.h>