projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vc-list-files: indent with spaces, not TABs
[pspp]
/
tests
/
test-mkfifoat.c
diff --git
a/tests/test-mkfifoat.c
b/tests/test-mkfifoat.c
index fca3411b3e6842310c172fcbdac782406dcebc6e..fe086fd0368c71d28b7b4196797d37b30f754e3b 100644
(file)
--- a/
tests/test-mkfifoat.c
+++ b/
tests/test-mkfifoat.c
@@
-1,5
+1,5
@@
/* Tests of mkfifoat and mknodat.
/* Tests of mkfifoat and mknodat.
- 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,10
@@
#include <sys/stat.h>
#include <sys/stat.h>
+#include "signature.h"
+SIGNATURE_CHECK (mkfifoat, int, (int, char const *, mode_t));
+SIGNATURE_CHECK (mknodat, int, (int, char const *, mode_t, dev_t));
+
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
#include <fcntl.h>
#include <errno.h>
#include <stdbool.h>
@@
-28,17
+32,8
@@
#include <string.h>
#include <unistd.h>
#include <string.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-mkfifoat.t"
#define BASE "test-mkfifoat.t"
@@
-78,7
+73,7
@@
main (void)
int result;
/* Remove any leftovers from a previous partial run. */
int result;
/* Remove any leftovers from a previous partial run. */
-
ASSERT (system ("rm -rf " BASE "*") == 0
);
+
ignore_value (system ("rm -rf " BASE "*")
);
/* Basic tests. */
result = test_mkfifo (do_mkfifoat, true);
/* Basic tests. */
result = test_mkfifo (do_mkfifoat, true);