X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-xmemdup0.c;h=eb93336f7db62de292b1bffa2bf38df553329ff0;hb=ea1a2077de32da9837b495d589509f8269807dd1;hp=efefd94a261f69ec49d09c23f4e103e8ea10e8cd;hpb=e0e63df44d88b4b6139cd29906df1fd697c4bc4a;p=gnulib.git diff --git a/tests/test-xmemdup0.c b/tests/test-xmemdup0.c index efefd94a2..eb93336f7 100644 --- a/tests/test-xmemdup0.c +++ b/tests/test-xmemdup0.c @@ -1,5 +1,5 @@ /* Test of xmemdup0() function. - Copyright (C) 2008-2009 Free Software Foundation, Inc. + Copyright (C) 2008-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,29 +21,17 @@ #include "xmemdup0.h" -#include #include #include #include "progname.h" - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "macros.h" int main (int argc, char **argv) { char buffer[10] = { 'a', 'b', 'c', 'd', '\0', - 'f', 'g', 'h', 'i', 'j' }; + 'f', 'g', 'h', 'i', 'j' }; set_program_name (argv[0]);