projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prepare NEWS.stable
[gnulib.git]
/
tests
/
test-mkdir.c
diff --git
a/tests/test-mkdir.c
b/tests/test-mkdir.c
index
1531e25
..
2828be2
100644
(file)
--- a/
tests/test-mkdir.c
+++ b/
tests/test-mkdir.c
@@
-1,5
+1,5
@@
/* Tests of mkdir.
/* Tests of mkdir.
- Copyright (C) 2009 Free Software Foundation, Inc.
+ Copyright (C) 2009
-2012
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 (mkdir, int, (char const *, mode_t));
#include <stdlib.h>
#include <unistd.h>
#include <stdlib.h>
#include <unistd.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-mkdir.t"
#define BASE "test-mkdir.t"
@@
-50,7
+41,7
@@
int
main (void)
{
/* Clean up any trash from prior testsuite runs. */
main (void)
{
/* Clean up any trash from prior testsuite runs. */
-
ASSERT (system ("rm -rf " BASE "*") == 0
);
+
ignore_value (system ("rm -rf " BASE "*")
);
return test_mkdir (mkdir, true);
}
return test_mkdir (mkdir, true);
}