mirror-linux/tools/testing/selftests/nolibc
Daniel Palmer a5f00be9b3 tools/nolibc: Add a simple test for writing to a FILE and reading it back
Add a test that exercises create->write->seek->read to check that using the
stream functions (fwrite() etc) is not totally broken.

The only edge cases this is testing for are:
- Reading the file after writing but without rewinding reads nothing.
- Trying to read more items than the file contains returns the count of
  fully read items.

Signed-off-by: Daniel Palmer <daniel@thingy.jp>
Link: https://patch.msgid.link/20260105023629.1502801-4-daniel@thingy.jp
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
2026-01-11 12:47:47 +01:00
..
.gitignore selftests/nolibc: add script to run testsuite 2023-12-11 22:38:17 +01:00
Makefile selftests/nolibc: also test libc-test through regular selftest framework 2026-01-11 11:17:15 +01:00
Makefile.include selftests/nolibc: split out CFLAGS logic 2025-06-23 22:51:58 +02:00
Makefile.nolibc selftests/nolibc: always build sparc32 tests with -mcpu=v8 2026-01-06 12:30:16 +01:00
nolibc-test-linkage.c selftests/nolibc: drop include guards around standard headers 2025-05-21 15:32:27 +02:00
nolibc-test-linkage.h selftests/nolibc: add tests for multi-object linkage 2023-10-12 21:14:20 +02:00
nolibc-test.c tools/nolibc: Add a simple test for writing to a FILE and reading it back 2026-01-11 12:47:47 +01:00
run-tests.sh nolibc changes for v6.19 2025-12-03 09:23:25 -08:00