From 4c6c7f9ee1295207e4fc79d8dc27e13449e8d14b Mon Sep 17 00:00:00 2001 From: yasuoka <> Date: Tue, 3 Jun 2025 14:35:27 +0000 Subject: Now our fflush() comply POSIX-2008. test_fflush is expected "pass". And switch test___freadahead to use another version that uses fflush(). --- src/regress/lib/libc/stdio/Makefile | 5 +---- src/regress/lib/libc/stdio/test___freadahead.c | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libc/stdio/Makefile b/src/regress/lib/libc/stdio/Makefile index fa5ebabee1..f1e980f688 100644 --- a/src/regress/lib/libc/stdio/Makefile +++ b/src/regress/lib/libc/stdio/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.3 2025/05/25 05:32:45 yasuoka Exp $ +# $OpenBSD: Makefile,v 1.4 2025/06/03 14:35:27 yasuoka Exp $ PROGS= test_fflush CLEANFILES= test_fflush.tmp @@ -26,7 +26,4 @@ CLEANFILES+= test___fseterr.tmp WARNINGS= yes -# until fflush comply POSIX-2008 -REGRESS_EXPECTED_FAILURES= run-regress-test_fflush - .include 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 @@ -/* $OpenBSD: test___freadahead.c,v 1.1 2025/05/25 00:20:54 yasuoka Exp $ */ +/* $OpenBSD: test___freadahead.c,v 1.2 2025/06/03 14:35:27 yasuoka Exp $ */ /* * Copyright (c) 2025 YASUOKA Masahiko @@ -49,7 +49,7 @@ test___freadahead0(void) s = __freadahead(fp); assert(s == 10); r = fflush(fp); -#if 1 +#if 0 /* fflush() to reading file is not supported (yet) */ assert(errno == EBADF); #else -- cgit v1.2.3-55-g6feb