X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-priv-set.c;h=f1d5f0112dd0c9045ec0696740d9381bb0f5d3c5;hb=07809063056aef043ba738ab8229042f1ffc9659;hp=6d3b87ba06c17504274c0cf62a2a2079ce156521;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/tests/test-priv-set.c b/tests/test-priv-set.c index 6d3b87ba0..f1d5f0112 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-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 @@ -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 ());