X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-array_list.c;h=27f2ee0ba28db5aa1462b64d90ac18b9159251a9;hb=e677143bef643fc74c206d19a7f8767745ba8774;hp=2f33d4c573f66b1f51f935c944bccb9faa163b21;hpb=766d4f1de6c26bb084382524eaed00b45ab3112c;p=gnulib.git diff --git a/tests/test-array_list.c b/tests/test-array_list.c index 2f33d4c57..27f2ee0ba 100644 --- a/tests/test-array_list.c +++ b/tests/test-array_list.c @@ -1,5 +1,5 @@ /* Test of sequential list data type implementation. - Copyright (C) 2006-2009 Free Software Foundation, Inc. + Copyright (C) 2006-2011 Free Software Foundation, Inc. Written by Bruno Haible , 2007. This program is free software: you can redistribute it and/or modify @@ -19,28 +19,16 @@ #include "gl_array_list.h" -#include #include #include "progname.h" +#include "macros.h" static const char *objects[15] = { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o" }; -#define SIZEOF(array) (sizeof (array) / sizeof (array[0])) -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) #define RANDOM(n) (rand () % (n)) #define RANDOM_OBJECT() objects[RANDOM (SIZEOF (objects))]