X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-priv-set.c;h=bcbc84abb3b7c4b4048d193ac7fa1d9ff2783331;hb=cd56634a4a8179fd5a4419fbb3e27211b042ab1c;hp=7f0587377918e3de785a2d376f21afc6cd1b6a88;hpb=740cb7248fef99fc09b575deb650cfe9ecabafbf;p=gnulib.git diff --git a/tests/test-priv-set.c b/tests/test-priv-set.c index 7f0587377..bcbc84abb 100644 --- a/tests/test-priv-set.c +++ b/tests/test-priv-set.c @@ -1,5 +1,5 @@ /* Test the priv-set module. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009-2014 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 @@ -17,33 +17,22 @@ /* Written by David Bartley , 2007. */ #include + #include "priv-set.h" -#if HAVE_GETPPRIV +#if HAVE_GETPPRIV && HAVE_PRIV_H # include #endif #include -#include -#include #include #include -#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 (void) { -#if HAVE_GETPPRIV +#if HAVE_GETPPRIV && HAVE_PRIV_H priv_set_t *set; ASSERT (set = priv_allocset ());