projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rint tests: More tests.
[gnulib.git]
/
tests
/
test-symlink.c
diff --git
a/tests/test-symlink.c
b/tests/test-symlink.c
index
c84e006
..
367e045
100644
(file)
--- a/
tests/test-symlink.c
+++ b/
tests/test-symlink.c
@@
-1,5
+1,5
@@
/* Tests of symlink.
/* Tests of symlink.
- 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
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
@@
-30,17
+30,8
@@
SIGNATURE_CHECK (symlink, int, (char const *, char const *));
#include <stdlib.h>
#include <sys/stat.h>
#include <stdlib.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 "ignore-value.h"
+#include "macros.h"
#define BASE "test-symlink.t"
#define BASE "test-symlink.t"
@@
-50,7
+41,7
@@
int
main (void)
{
/* Remove any leftovers from a previous partial run. */
main (void)
{
/* Remove any leftovers from a previous partial run. */
-
ASSERT (system ("rm -rf " BASE "*") == 0
);
+
ignore_value (system ("rm -rf " BASE "*")
);
return test_symlink (symlink, true);
}
return test_symlink (symlink, true);
}