aboutsummaryrefslogtreecommitdiff
path: root/tests/fw_cfg-test.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2014-02-08 11:41:07 +0100
committerAndreas Färber <afaerber@suse.de>2014-02-17 23:10:02 +0100
commit91f32b0c92fb18a403e48d3c8ffc14422a0c1ca5 (patch)
treec1777d672e179300205f792840bc9a2ada3d8670 /tests/fw_cfg-test.c
parente41b509d68afb1f329c8558b6edfe2fcbac88e66 (diff)
qtest: Include system headers before user headers
It is dangerous to include user headers before system headers since user macros can affect system headers. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'tests/fw_cfg-test.c')
-rw-r--r--tests/fw_cfg-test.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/fw_cfg-test.c b/tests/fw_cfg-test.c
index e4f355ce3f..5c8f8d6c24 100644
--- a/tests/fw_cfg-test.c
+++ b/tests/fw_cfg-test.c
@@ -10,15 +10,14 @@
* See the COPYING file in the top-level directory.
*/
-#define NO_QEMU_PROTOS
+#include <string.h>
+#include <glib.h>
#include "libqtest.h"
+#define NO_QEMU_PROTOS
#include "hw/nvram/fw_cfg.h"
#include "libqos/fw_cfg.h"
-#include <string.h>
-#include <glib.h>
-
static uint64_t ram_size = 128 << 20;
static uint16_t nb_cpus = 1;
static uint16_t max_cpus = 1;