projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test-renameat.c: include <sys/stat.h>
[gnulib.git]
/
tests
/
test-fbufmode.c
diff --git
a/tests/test-fbufmode.c
b/tests/test-fbufmode.c
index
1bf820e
..
da32834
100644
(file)
--- a/
tests/test-fbufmode.c
+++ b/
tests/test-fbufmode.c
@@
-1,5
+1,5
@@
/* Test of fbufmode() function.
/* Test of fbufmode() function.
- Copyright (C) 2007-20
08
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
@@
-21,19
+21,8
@@
#include "fbufmode.h"
#include <stdio.h>
#include "fbufmode.h"
#include <stdio.h>
-#include <stdlib.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 TESTFILE "t-fbufmode.tmp"
#define TESTFILE "t-fbufmode.tmp"
@@
-64,7
+53,7
@@
main ()
{
/* mingw's setvbuf implements _IOLBF the same way as _IOFBF. */
ASSERT (fbufmode (fp) == _IOLBF
{
/* mingw's setvbuf implements _IOLBF the same way as _IOFBF. */
ASSERT (fbufmode (fp) == _IOLBF
- || fbufmode (fp) == _IOFBF);
+
|| fbufmode (fp) == _IOFBF);
}
/* This setvbuf call can fail, e.g. on HP-UX 11. */
}
/* This setvbuf call can fail, e.g. on HP-UX 11. */