X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-file-has-acl.c;h=05d7525a89a97eabb05523b1bf59c028bb8223d1;hb=de9f4b1;hp=5685f41155f56a2160ec16af5569270d19665f6a;hpb=67a85c2b8a870d5f34acbc699f6c429b865b4d10;p=gnulib.git diff --git a/tests/test-file-has-acl.c b/tests/test-file-has-acl.c index 5685f4115..05d7525a8 100644 --- a/tests/test-file-has-acl.c +++ b/tests/test-file-has-acl.c @@ -1,5 +1,5 @@ /* Test for presence of ACL. - Copyright (C) 2008-2009 Free Software Foundation, Inc. + Copyright (C) 2008-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 @@ -27,17 +27,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" int main (int argc, char *argv[]) @@ -68,8 +58,8 @@ main (int argc, char *argv[]) int ret = file_has_acl (file, &statbuf); if (ret < 0) { - fprintf (stderr, "could not access the ACL of file \"%s\"\n", file); - exit (EXIT_FAILURE); + fprintf (stderr, "could not access the ACL of file \"%s\"\n", file); + exit (EXIT_FAILURE); } printf ("%s\n", ret ? "yes" : "no"); }