projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
openat: Work around compilation error with OSF/1 5.1 DTK cc.
[gnulib.git]
/
tests
/
test-rmdir.c
diff --git
a/tests/test-rmdir.c
b/tests/test-rmdir.c
index
908b0e6
..
6957efe
100644
(file)
--- a/
tests/test-rmdir.c
+++ b/
tests/test-rmdir.c
@@
-1,5
+1,5
@@
/* Tests of rmdir.
/* Tests of rmdir.
- 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
@@
-20,6
+20,9
@@
#include <unistd.h>
#include <unistd.h>
+#include "signature.h"
+SIGNATURE_CHECK (rmdir, int, (char const *));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
@@
-27,17
+30,8
@@
#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-rmdir.t"
#define BASE "test-rmdir.t"
@@
-46,5
+40,8
@@
int
main (void)
{
int
main (void)
{
+ /* Remove any leftovers from a previous partial run. */
+ ignore_value (system ("rm -rf " BASE "*"));
+
return test_rmdir_func (rmdir, true);
}
return test_rmdir_func (rmdir, true);
}