From: Brad King Date: Mon, 16 Nov 2009 16:29:40 +0000 (-0500) Subject: Include test.h first in test main.c sources X-Git-Tag: v2.8.0~155 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=deb76321d1034ade3b227dcd5fceb969860270ed;p=thirdparty%2Flibarchive.git Include test.h first in test main.c sources This change makes the main.c source for each test executable consistent with the other test sources. It also ensures that config.h (through test.h) is included before system headers, thus configuring system header feature macros correctly. SVN-Revision: 1660 --- diff --git a/cpio/test/main.c b/cpio/test/main.c index 2091b5225..34a52a5cc 100644 --- a/cpio/test/main.c +++ b/cpio/test/main.c @@ -23,11 +23,11 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "test.h" #include #include #include #include -#include "test.h" /* * This same file is used pretty much verbatim for all test harnesses. diff --git a/libarchive/test/main.c b/libarchive/test/main.c index 9183cfafe..47b5838db 100644 --- a/libarchive/test/main.c +++ b/libarchive/test/main.c @@ -23,11 +23,11 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "test.h" #include #include #include #include -#include "test.h" /* * This same file is used pretty much verbatim for all test harnesses. diff --git a/tar/test/main.c b/tar/test/main.c index b188cc853..faed3ac46 100644 --- a/tar/test/main.c +++ b/tar/test/main.c @@ -23,11 +23,11 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "test.h" #include #include #include #include -#include "test.h" /* * This same file is used pretty much verbatim for all test harnesses.