projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
getlogin, getlogin_r: Avoid test failure.
[gnulib.git]
/
tests
/
test-linkat.c
diff --git
a/tests/test-linkat.c
b/tests/test-linkat.c
index
11233fe
..
c2ad0e5
100644
(file)
--- a/
tests/test-linkat.c
+++ b/
tests/test-linkat.c
@@
-1,5
+1,5
@@
/* Tests of linkat.
/* Tests of linkat.
- 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
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 <unistd.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (linkat, int, (int, char const *, int, char const *, int));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
@@
-31,18
+34,7
@@
#include "filenamecat.h"
#include "same-inode.h"
#include "xgetcwd.h"
#include "filenamecat.h"
#include "same-inode.h"
#include "xgetcwd.h"
-
-#define ASSERT(expr) \
- do \
- { \
- if (!(expr)) \
- { \
- fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
- fflush (stderr); \
- abort (); \
- } \
- } \
- while (0)
+#include "macros.h"
#define BASE "test-linkat.t"
#define BASE "test-linkat.t"
@@
-89,7
+81,7
@@
main (void)
int result;
/* Clean up any trash from prior testsuite runs. */
int result;
/* Clean up any trash from prior testsuite runs. */
-
ASSERT (system ("rm -rf " BASE "*") == 0
);
+
system ("rm -rf " BASE "*"
);
/* Test basic link functionality, without mentioning symlinks. */
result = test_link (do_link, true);
/* Test basic link functionality, without mentioning symlinks. */
result = test_link (do_link, true);