Skip to content

Commit af4f815

Browse files
committed
Adapt NetBSD t_fmemopen test for picolibc
The test checks some NetBSD-specific behaviour:rejecting non-NUL writes at the end of the buffer as well as assuming that opening in 'w' mode always writes a NUL byte at the start of the buffer. Also fix it for glibc so that we can run the native test.
1 parent b4551fe commit af4f815

File tree

2 files changed

+139
-57
lines changed

2 files changed

+139
-57
lines changed

test/meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,10 @@ foreach target : targets
488488
plain_tests += 'malloc_stress'
489489
endif
490490

491+
if tinystdio
492+
plain_tests += 't_fmemopen'
493+
endif
494+
491495
if (posix_io or not tinystdio) and tests_enable_posix_io
492496
plain_tests += ['posix-io']
493497

0 commit comments

Comments
 (0)