projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests for module 'unistr/u16-strdup'.
[gnulib.git]
/
tests
/
test-mkdir.c
diff --git
a/tests/test-mkdir.c
b/tests/test-mkdir.c
index
14c3323
..
771758e
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
, 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 <sys/stat.h>
#include <sys/stat.h>
+#include "signature.h"
+SIGNATURE_CHECK (mkdir, int, (char const *, mode_t));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
@@
-27,17
+30,7
@@
#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 "macros.h"
#define BASE "test-mkdir.t"
#define BASE "test-mkdir.t"
@@
-47,7
+40,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
);
+
system ("rm -rf " BASE "*"
);
return test_mkdir (mkdir, true);
}
return test_mkdir (mkdir, true);
}