projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove redundant AC_SUBST invocation.
[gnulib.git]
/
tests
/
test-fopen.c
diff --git
a/tests/test-fopen.c
b/tests/test-fopen.c
index
b9e3694
..
d788d84
100644
(file)
--- a/
tests/test-fopen.c
+++ b/
tests/test-fopen.c
@@
-1,5
+1,5
@@
/* Test of opening a file stream.
/* Test of opening a file stream.
- Copyright (C) 2007-20
09
Free Software Foundation, Inc.
+ Copyright (C) 2007-20
10
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
@@
-19,31
+19,16
@@
#include <config.h>
#include <stdio.h>
#include <config.h>
#include <stdio.h>
-#include <stdlib.h>
-
-#if GNULIB_FOPEN_SAFER
-# include "stdio--.h"
-#endif
-
-#define ASSERT(expr) \
- do \
- { \
- if (!(expr)) \
- { \
- fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
- fflush (stderr); \
- abort (); \
- } \
- } \
- while (0)
-int
-main ()
-{
- ASSERT (fopen ("nonexist.ent/", "w") == NULL);
- ASSERT (fopen ("/dev/null/", "r") == NULL);
+#include "signature.h"
+SIGNATURE_CHECK (fopen, FILE *, (char const *, char const *));
+
+#define BASE "test-fopen.t"
- ASSERT (fopen ("/dev/null", "r") != NULL);
+#include "test-fopen.h"
- return 0;
+int
+main (void)
+{
+ return test_fopen ();
}
}