X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-lchown.c;h=9b868ebc19c188f618c224edebbbd8bdb28ba468;hb=3220d5c6210870672d55ab27482fcdd1e964d75d;hp=78c2940819008ac546b52bbb7ec1c7ceec9fd37d;hpb=6bd102382341d268d2e99349abd4c21546a5993e;p=gnulib.git diff --git a/tests/test-lchown.c b/tests/test-lchown.c index 78c294081..9b868ebc1 100644 --- a/tests/test-lchown.c +++ b/tests/test-lchown.c @@ -1,5 +1,5 @@ /* Tests of lchown. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009, 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 @@ -20,6 +20,9 @@ #include +#include "signature.h" +SIGNATURE_CHECK (lchown, int, (char const *, uid_t, gid_t)); + #include #include #include @@ -29,18 +32,8 @@ #include "mgetgroups.h" #include "stat-time.h" - -#define ASSERT(expr) \ - do \ - { \ - if (!(expr)) \ - { \ - fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ - fflush (stderr); \ - abort (); \ - } \ - } \ - while (0) +#include "ignore-value.h" +#include "macros.h" #define BASE "test-lchown.t" @@ -50,7 +43,7 @@ int main (void) { /* Remove any leftovers from a previous partial run. */ - ASSERT (system ("rm -rf " BASE "*") == 0); + ignore_value (system ("rm -rf " BASE "*")); return test_lchown (lchown, true); }