Skip to content

tools/nolibc: add testcases for vfprintf

Thomas Weißschuh linux-arm-kernel linux-kselftest linux-next lkml 3 versions – In review

Get series with b4
b4 am [email protected] change-id 20230328-nolibc-printf-test-052d5abc2118

Versions newest first

  1. v3 Latest4 patches 5 repliesIn review
  2. v23 patches 5 repliesSuperseded
  3. v13 patches 7 repliesSuperseded

Changes in v3 from the cover letter

- also provide and use fflush/fclose.
- reject fileno(NULL).
- provide compatability with buffered streams from glibc.
- Link to v2: https://lore.kernel.org/r/[email protected]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tools/nolibc: add libc-test binarytools/testing/selftests/nolibc/.gitignore tools/testing/selftests/nolibc/Makefile+6 -01 reply
2/4tools/nolibc: add wrapper for memfd_createtools/include/nolibc/sys.h+23 -00 replies
3/4tools/nolibc: implement fd-based FILE streamstools/include/nolibc/stdio.h+68 -273 replies
4/4tools/nolibc: add testcases for vfprintftools/testing/selftests/nolibc/nolibc-test.c+86 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/4] tools/nolibc: add testcases for vfprintf

vfprintf() is complex and so far did not have proper tests.

This series is based on the "dev" branch of the RCU tree.

---
Changes in v3:
- also provide and use fflush/fclose.
- reject fileno(NULL).
- provide compatability with buffered streams from glibc.
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Include <sys/mman.h> for tests.
- Implement FILE* in terms of integer pointers.
- Provide fdopen() and fileno().
- Link to v1: https://lore.kernel.org/lkml/[email protected]/

---
Thomas Weißschuh (4):
tools/nolibc: add libc-test binary tools/nolibc: add wrapper for memfd_create tools/nolibc: implement fd-based FILE streams tools/nolibc: add testcases for vfprintf

 tools/include/nolibc/stdio.h                 | 95 ++++++++++++++++++++--------
 tools/include/nolibc/sys.h                   | 23 +++++++
 tools/testing/selftests/nolibc/.gitignore    |  1 +
 tools/testing/selftests/nolibc/Makefile      |  5 ++
 tools/testing/selftests/nolibc/nolibc-test.c | 86 +++++++++++++++++++++++++
 5 files changed, 183 insertions(+), 27 deletions(-)

---
base-commit: a63baab5f60110f3631c98b55d59066f1c68c4f7
change-id: 20230328-nolibc-printf-test-052d5abc2118

Best regards,

Signature · 1 line
Thomas Weißschuh <[email protected]>