]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Include test.h first in test main.c sources
authorBrad King <brad.king@kitware.com>
Mon, 16 Nov 2009 16:29:40 +0000 (11:29 -0500)
committerBrad King <brad.king@kitware.com>
Mon, 16 Nov 2009 16:29:40 +0000 (11:29 -0500)
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

cpio/test/main.c
libarchive/test/main.c
tar/test/main.c

index 2091b52255a0841f8d06ea8324c2346ccaa933c1..34a52a5cc987e6a0192a466a73a5a155ca04844e 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include "test.h"
 #include <errno.h>
 #include <locale.h>
 #include <stdarg.h>
 #include <time.h>
-#include "test.h"
 
 /*
  * This same file is used pretty much verbatim for all test harnesses.
index 9183cfafe846fed5d3b5ca7128907b8fa5f2f24e..47b5838dbef09ccd2a82fc7fc453e52677ef8e51 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include "test.h"
 #include <errno.h>
 #include <locale.h>
 #include <stdarg.h>
 #include <time.h>
-#include "test.h"
 
 /*
  * This same file is used pretty much verbatim for all test harnesses.
index b188cc85392811eb6fa2e07db5f83bb5e88efc34..faed3ac46c8c272f5dec9439fe69c963f0082917 100644 (file)
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include "test.h"
 #include <errno.h>
 #include <locale.h>
 #include <stdarg.h>
 #include <time.h>
-#include "test.h"
 
 /*
  * This same file is used pretty much verbatim for all test harnesses.