]> xenbits.xensource.com Git - people/royger/xen-test-framework.git/commitdiff
Rearrange includes
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 8 Jan 2016 18:18:19 +0000 (18:18 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 8 Jan 2016 18:18:19 +0000 (18:18 +0000)
For simplicity, tests should just include <xtf/lib.h> and get all the common
infrastructure for free.  All type definitions should come from <xtf/types.h>.
Fix one declaration vs definition mismatch uncovered.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
include/arch/x86/div.h
include/arch/x86/lib.h
include/arch/x86/mm.h
include/xtf/lib.h
include/xtf/test.h
tests/example/main.c
tests/selftest/main.c

index 1985b2d2a12940a74f26de010eecd0dd35c99c53..8e44898e56303971c37c0f92b220f224e1cff847 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef XTF_X86_DIV_H
 #define XTF_X86_DIV_H
 
-#include <stdint.h>
+#include <xtf/types.h>
 
 /*
  * Divide a 64bit number by 32bit divisor without software support.
index 0ebbe90f8362f33f21d826da5f2b00ae4ca3a9ac..1bd016129806b5b9a89a3e6bd8e6a5a8a1b870e7 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef XTF_X86_LIB_H
 #define XTF_X86_LIB_H
 
-#include <stdint.h>
+#include <xtf/types.h>
 
 static inline uint64_t rdmsr(uint32_t idx)
 {
index 900468ff132804c1f52958303b3984e868824afa..59c941e2cf143ad46568b2f6768fb1b8c0c9664a 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef XTF_X86_MM_H
 #define XTF_X86_MM_H
 
-#include <stdint.h>
+#include <xtf/types.h>
 
 #include <arch/x86/page.h>
 
index d18ac2b6b9a85115ab595b22cb46442c884a9419..8991db20835bb338cb5d09edd209bbdd5f21369c 100644 (file)
@@ -4,7 +4,12 @@
 #include <xtf/types.h>
 #include <xtf/compiler.h>
 #include <xtf/console.h>
+#include <xtf/exlog.h>
+#include <xtf/libc.h>
 #include <xtf/numbers.h>
+#include <xtf/report.h>
+#include <xtf/test.h>
+#include <xtf/traps.h>
 
 #include <arch/x86/lib.h>
 
index f7ef95e17831bd245e3eb14bc6bd75c4447da1d4..d28aac9a542bcb2e7b82e784d98e498dbcbedffb 100644 (file)
@@ -17,7 +17,7 @@ void test_main(void);
  * Boolean indicating whether generic Force Emulation Prefix support is
  * available for the test to use.
  */
-extern const bool xtf_has_fep;
+extern bool xtf_has_fep;
 
 #endif /* XTF_TEST_H */
 
index e3bc288fc0b073330d527a860214ed0311bbf307..c07e9342d2a44ef1e3f9fe63de8f53684d2a70e1 100644 (file)
@@ -1,6 +1,4 @@
-#include <xtf/test.h>
-#include <xtf/report.h>
-#include <xtf/console.h>
+#include <xtf/lib.h>
 
 void test_main(void)
 {
index adae1dea3aeb44a062a5d102db3e95bc218ce439..83f7281b8ea1c058c71263369250eb2fbe632b05 100644 (file)
@@ -1,10 +1,4 @@
-#include <xtf/test.h>
-#include <xtf/report.h>
-#include <xtf/console.h>
-
 #include <xtf/lib.h>
-#include <xtf/traps.h>
-#include <xtf/exlog.h>
 
 #include <arch/x86/processor.h>
 #include <arch/x86/segment.h>