X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-idpriv-droptemp.c;h=d0b352ca249a27a5ac4b21afd444a1ddecaaa4b8;hb=e81d3b1b46e69f9799deb665769f9796c4e454e6;hp=3dc36c9a655bd575da9e4d1f0a78c0abd5203d77;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/tests/test-idpriv-droptemp.c b/tests/test-idpriv-droptemp.c index 3dc36c9a6..d0b352ca2 100644 --- a/tests/test-idpriv-droptemp.c +++ b/tests/test-idpriv-droptemp.c @@ -1,5 +1,5 @@ /* Test of dropping uid/gid privileges of the current process temporarily. - 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 @@ -24,17 +24,7 @@ #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" static void show_uids () @@ -48,7 +38,7 @@ show_uids () (int) real, (int) effective, (int) saved); #elif HAVE_GETEUID printf ("uids: real=%d effective=%d", - (int) getuid (), (int) geteuid()); + (int) getuid (), (int) geteuid ()); #elif HAVE_GETUID printf ("uids: real=%d", (int) getuid ()); @@ -67,7 +57,7 @@ show_gids () (int) real, (int) effective, (int) saved); #elif HAVE_GETEGID printf ("gids: real=%d effective=%d", - (int) getgid (), (int) getegid()); + (int) getgid (), (int) getegid ()); #elif HAVE_GETGID printf ("gids: real=%d", (int) getgid ());