projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vasnprintf: Add more tests.
[gnulib.git]
/
tests
/
test-file-has-acl.c
diff --git
a/tests/test-file-has-acl.c
b/tests/test-file-has-acl.c
index
5685f41
..
05d7525
100644
(file)
--- a/
tests/test-file-has-acl.c
+++ b/
tests/test-file-has-acl.c
@@
-1,5
+1,5
@@
/* Test for presence of ACL.
/* Test for presence of ACL.
- Copyright (C) 2008-20
09
Free Software Foundation, Inc.
+ Copyright (C) 2008-20
10
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
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 <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
-#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[])
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)
{
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");
}
}
printf ("%s\n", ret ? "yes" : "no");
}