diff options
| author | yasuoka <> | 2025-06-03 14:35:27 +0000 |
|---|---|---|
| committer | yasuoka <> | 2025-06-03 14:35:27 +0000 |
| commit | 4c6c7f9ee1295207e4fc79d8dc27e13449e8d14b (patch) | |
| tree | abda2e5e137818fcc069ccba7fba018864cea0d4 /src | |
| parent | 991af54a4be36e40addfd5da200aa37c83188be8 (diff) | |
| download | openbsd-4c6c7f9ee1295207e4fc79d8dc27e13449e8d14b.tar.gz openbsd-4c6c7f9ee1295207e4fc79d8dc27e13449e8d14b.tar.bz2 openbsd-4c6c7f9ee1295207e4fc79d8dc27e13449e8d14b.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 '')
| -rw-r--r-- | src/regress/lib/libc/stdio/Makefile | 5 | ||||
| -rw-r--r-- | src/regress/lib/libc/stdio/test___freadahead.c | 4 |
2 files changed, 3 insertions, 6 deletions
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 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.3 2025/05/25 05:32:45 yasuoka Exp $ | 1 | # $OpenBSD: Makefile,v 1.4 2025/06/03 14:35:27 yasuoka Exp $ |
| 2 | 2 | ||
| 3 | PROGS= test_fflush | 3 | PROGS= test_fflush |
| 4 | CLEANFILES= test_fflush.tmp | 4 | CLEANFILES= test_fflush.tmp |
| @@ -26,7 +26,4 @@ CLEANFILES+= test___fseterr.tmp | |||
| 26 | 26 | ||
| 27 | WARNINGS= yes | 27 | WARNINGS= yes |
| 28 | 28 | ||
| 29 | # until fflush comply POSIX-2008 | ||
| 30 | REGRESS_EXPECTED_FAILURES= run-regress-test_fflush | ||
| 31 | |||
| 32 | .include <bsd.regress.mk> | 29 | .include <bsd.regress.mk> |
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 |
