Skip to content

Commit

Permalink
test: fix include order for AIX, bug#89354
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Haubenwallner authored and Bryce Harrington committed Mar 6, 2015
1 parent e9a615a commit 0916d58
Show file tree
Hide file tree
Showing 41 changed files with 52 additions and 49 deletions.
2 changes: 1 addition & 1 deletion test/clip-nesting.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* Author: Owen Taylor <otaylor@redhat.com>
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define SIZE 100
Expand Down
2 changes: 1 addition & 1 deletion test/clip-operator.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* Author: Kristian Høgsberg <krh@redhat.com>
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define WIDTH 16
Expand Down
2 changes: 1 addition & 1 deletion test/close-path.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* Author: Carl D. Worth <cworth@cworth.org>
*/

#include <stdlib.h>
#include "cairo-test.h"
#include <stdlib.h>

static cairo_test_draw_function_t draw;

Expand Down
2 changes: 1 addition & 1 deletion test/composite-integer-translate-over-repeat.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
* Author: Vladimir Vukicevic <vladimir@pobox.com>
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define SIZE 100
Expand Down
2 changes: 1 addition & 1 deletion test/composite-integer-translate-over.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
*
* Author: Vladimir Vukicevic <vladimir@pobox.com>
*/
#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define SIZE 100
Expand Down
2 changes: 1 addition & 1 deletion test/composite-integer-translate-source.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
* Author: Vladimir Vukicevic <vladimir@pobox.com>
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define SIZE 100
Expand Down
2 changes: 1 addition & 1 deletion test/copy-path.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* Author: Carl D. Worth <cworth@cworth.org>
*/

#include <stdlib.h>
#include "cairo-test.h"
#include <stdlib.h>

static void
scale_by_two (double *x, double *y)
Expand Down
2 changes: 1 addition & 1 deletion test/extend-pad-border.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
* Author: Behdad Esfahbod <behdad@behdad.org>
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define SIZE 90
Expand Down
2 changes: 1 addition & 1 deletion test/extend-pad-similar.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
* Author: Behdad Esfahbod <behdad@behdad.org>
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define SIZE 90
Expand Down
2 changes: 1 addition & 1 deletion test/extend-pad.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
* Author: Behdad Esfahbod <behdad@behdad.org>
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define SIZE 90
Expand Down
2 changes: 1 addition & 1 deletion test/extend-reflect.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

static const char *png_filename = "romedalen.png";
Expand Down
2 changes: 1 addition & 1 deletion test/extended-blend.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
* Emmanuel Pacaud <emmanuel.pacaud@lapp.in2p3.fr>
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define STEPS 16
Expand Down
2 changes: 1 addition & 1 deletion test/mask.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
* Kristian Høgsberg <krh@redhat.com>
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define WIDTH 16
Expand Down
4 changes: 2 additions & 2 deletions test/multi-page.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
* Author: Carl D. Worth <cworth@cworth.org>
*/

#include "cairo-test.h"

#include <stdio.h>

#include <cairo.h>
Expand All @@ -35,8 +37,6 @@
#include <cairo-pdf.h>
#endif

#include "cairo-test.h"

/* The PostScript and PDF backends are now integrated into the main
* test suite, so we are getting good verification of most things
* there.
Expand Down
2 changes: 1 addition & 1 deletion test/operator-clear.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
* Owen Taylor <otaylor@redhat.com>
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define WIDTH 16
Expand Down
2 changes: 1 addition & 1 deletion test/operator-source.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
* Uli Schlachter <psychon@znc.in>
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define WIDTH 16
Expand Down
2 changes: 1 addition & 1 deletion test/path-append.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
* OF THIS SOFTWARE.
*/

#include <stdlib.h>
#include "cairo-test.h"
#include <stdlib.h>

static cairo_test_status_t
draw (cairo_t *cr, int width, int height)
Expand Down
2 changes: 1 addition & 1 deletion test/pattern-getters.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
* Author: Vladimir Vukicevic <vladimir@pobox.com>
*/

#include <stdlib.h>
#include "cairo-test.h"
#include <stdlib.h>

#define CHECK_SUCCESS do { \
if (status) { \
Expand Down
4 changes: 2 additions & 2 deletions test/pdf-features.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
* Author: Carl D. Worth <cworth@cworth.org>
*/

#include "cairo-test.h"

#include <stdio.h>
#include <cairo.h>
#include <cairo-pdf.h>

#include "cairo-test.h"

/* This test exists to test the various features of cairo-pdf.h.
*
* Currently, this test exercises the following function calls:
Expand Down
4 changes: 2 additions & 2 deletions test/pixman-downscale.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
* Currently, this exercises several of pixman's scaling filters.
*/

#include "cairo-test.h"

#include <stdio.h>
#include <stdlib.h>

#include <cairo.h>

#include "cairo-test.h"

static const char png_filename[] = "quad-color.png";

/* Draw an image scaled down, with antialiasing disabled */
Expand Down
4 changes: 2 additions & 2 deletions test/pixman-rotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
* Author: Kristian Høgsberg <krh@redhat.com>
*/

#include "cairo-test.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#include <cairo.h>

#include "cairo-test.h"

#define WIDTH 32
#define HEIGHT WIDTH

Expand Down
4 changes: 2 additions & 2 deletions test/ps-features.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
* Author: Carl D. Worth <cworth@cworth.org>
*/

#include "cairo-test.h"

#include <stdio.h>
#include <cairo.h>
#include <cairo-ps.h>

#include "cairo-test.h"

/* This test exists to test the various features of cairo-ps.h.
*
* Currently, this test exercises the following function calls:
Expand Down
2 changes: 1 addition & 1 deletion test/record-extend.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
* Chris Wilson <chris@chris-wilson.co.uk>
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define SIZE 90
Expand Down
2 changes: 1 addition & 1 deletion test/record-mesh.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
* Chris Wilson <chris@chris-wilson.co.uk>
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define PAT_WIDTH 170
Expand Down
2 changes: 1 addition & 1 deletion test/select-font-no-show-text.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
* Fixed... just a stray free().
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>

static cairo_test_status_t
draw (cairo_t *cr, int width, int height)
Expand Down
2 changes: 1 addition & 1 deletion test/self-copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* Author: Owen Taylor <otaylor@redhat.com>
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define SIZE 40
Expand Down
2 changes: 1 addition & 1 deletion test/source-clip-scale.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* Author: Vladimir Vukicevic <vladimir@pobox.com>
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define SIZE 12
Expand Down
2 changes: 1 addition & 1 deletion test/source-clip.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* Author: Owen Taylor <otaylor@redhat.com>
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define SIZE 12
Expand Down
2 changes: 1 addition & 1 deletion test/surface-pattern-scale-down.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
* Author: Behdad Esfahbod <behdad@behdad.org>
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define SIZE 200
Expand Down
2 changes: 1 addition & 1 deletion test/surface-pattern-scale-up.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
/* Exhibits nasty behaviour with GS due as their /Interpolate implementation
* does not function for rotated images. */

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define SIZE 100
Expand Down
2 changes: 1 addition & 1 deletion test/surface-pattern.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
* Author: Behdad Esfahbod <behdad@behdad.org>
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define SIZE 140
Expand Down
3 changes: 2 additions & 1 deletion test/svg-clip.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
* Author: Kristian Høgsberg <krh@redhat.com>
*/

#include "cairo-test.h"

#include <stdio.h>

#include <cairo-svg.h>
#include "cairo-test.h"

/* Test SVG clipping */

Expand Down
3 changes: 2 additions & 1 deletion test/svg-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
* Author: Carl D. Worth <cworth@cworth.org>
*/

#include "cairo-test.h"

#include <stdio.h>

#include <cairo-svg.h>
#include "cairo-test.h"

/* Pretty boring test just to make sure things aren't crashing ---
* no verification that we're getting good results yet.
Expand Down
2 changes: 1 addition & 1 deletion test/trap-clip.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* Author: Kristian Høgsberg <krh@redhat.com>
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define WIDTH 16
Expand Down
2 changes: 1 addition & 1 deletion test/unbounded-operator.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
* Owen Taylor <otaylor@redhat.com>
*/

#include <math.h>
#include "cairo-test.h"
#include <math.h>
#include <stdio.h>

#define WIDTH 16
Expand Down
4 changes: 2 additions & 2 deletions test/user-font-mask.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
* Adrian Johnson <ajohnson@redneon.com>
*/

#include "cairo-test.h"

#include <stdlib.h>
#include <stdio.h>

#include "cairo-test.h"

/*#define ROTATED 1*/

#define BORDER 10
Expand Down
Loading

0 comments on commit 0916d58

Please sign in to comment.