X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-carray_list.c;h=d400a8b5fb41e8b9031a0b1181c853d896f4cfe3;hb=d599e5add275f75ed08e6527b8ee4d3f4f7c3aea;hp=def7c5539db37b14819aa1a87fa64a8a32f9b67a;hpb=766d4f1de6c26bb084382524eaed00b45ab3112c;p=gnulib.git diff --git a/tests/test-carray_list.c b/tests/test-carray_list.c index def7c5539..d400a8b5f 100644 --- a/tests/test-carray_list.c +++ b/tests/test-carray_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 , 2006. This program is free software: you can redistribute it and/or modify @@ -19,29 +19,17 @@ #include "gl_carray_list.h" -#include #include #include "gl_array_list.h" #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))]