summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/stdio/test___freadahead.c
diff options
context:
space:
mode:
authoryasuoka <>2025-06-03 14:35:27 +0000
committeryasuoka <>2025-06-03 14:35:27 +0000
commit3c06d38754c80751e9c34ea3b1d99873245c8212 (patch)
treeabda2e5e137818fcc069ccba7fba018864cea0d4 /src/regress/lib/libc/stdio/test___freadahead.c
parent6ed3a1ddc5d30f8d2745857ce2b60d3f6756aa82 (diff)
downloadopenbsd-3c06d38754c80751e9c34ea3b1d99873245c8212.tar.gz
openbsd-3c06d38754c80751e9c34ea3b1d99873245c8212.tar.bz2
openbsd-3c06d38754c80751e9c34ea3b1d99873245c8212.zip
Now our fflush() comply POSIX-2008. test_fflush is expected "pass".
And switch test___freadahead to use another version that uses fflush().
Diffstat (limited to 'src/regress/lib/libc/stdio/test___freadahead.c')
-rw-r--r--src/regress/lib/libc/stdio/test___freadahead.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libc/stdio/test___freadahead.c b/src/regress/lib/libc/stdio/test___freadahead.c
index c853e23975..66d5e3492a 100644
--- a/src/regress/lib/libc/stdio/test___freadahead.c
+++ b/src/regress/lib/libc/stdio/test___freadahead.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: test___freadahead.c,v 1.1 2025/05/25 00:20:54 yasuoka Exp $ */ 1/* $OpenBSD: test___freadahead.c,v 1.2 2025/06/03 14:35:27 yasuoka Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2025 YASUOKA Masahiko <yasuoka@yasuoka.net> 4 * Copyright (c) 2025 YASUOKA Masahiko <yasuoka@yasuoka.net>
@@ -49,7 +49,7 @@ test___freadahead0(void)
49 s = __freadahead(fp); 49 s = __freadahead(fp);
50 assert(s == 10); 50 assert(s == 10);
51 r = fflush(fp); 51 r = fflush(fp);
52#if 1 52#if 0
53 /* fflush() to reading file is not supported (yet) */ 53 /* fflush() to reading file is not supported (yet) */
54 assert(errno == EBADF); 54 assert(errno == EBADF);
55#else 55#else