X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-strverscmp.c;h=9a9da1025ea71d3ba73455ecc5d330f7615f834e;hb=51cd1f8d04daa5bdc4008ac25e507f9ef777a2fc;hp=605b0f6d185b0ff15317f5d51077e7b78563fc94;hpb=63dfe7d84d88032b190b9d22d545933a7aceb2a8;p=gnulib.git diff --git a/tests/test-strverscmp.c b/tests/test-strverscmp.c index 605b0f6d1..9a9da1025 100644 --- a/tests/test-strverscmp.c +++ b/tests/test-strverscmp.c @@ -1,5 +1,5 @@ /* Test of strverscmp() function. - Copyright (C) 2008 Free Software Foundation, Inc. + Copyright (C) 2008-2011 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 @@ -19,25 +19,15 @@ #include -#include "strverscmp.h" +#include -#include -#include +#include "signature.h" +SIGNATURE_CHECK (strverscmp, int, (const char *, const char *)); -#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) +main (void) { ASSERT (strverscmp ("", "") == 0); ASSERT (strverscmp ("a", "a") == 0);