The NetBSD Project

CVS log for src/tests/kernel/t_memfd_create.c

[BACK] Up to [] / src / tests / kernel

Request diff between arbitrary revisions

Default branch: MAIN

Revision 1.3 / (download) - annotate - [select for diffs], Fri Nov 24 17:31:03 2023 UTC (4 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.2: +5 -5 lines
Diff to previous 1.2 (colored)

tests: Audit RZ abuse.

RZ succeeds if x is zero, and fails if x is nonzero, treating a
nonzero value as a error number as in errno(3) to print the message.

The following library routines instead return -1 on failure and set
errno to the error code:


So use RL instead for those -- succeeds if x is zero, and fails if x
is -1.

This shouldn't make any tests newly fail or newly succeed -- the
functions in question only ever return 0 or -1 -- but if the tests
were already failing anywhere, they will now fail with meaningful

TBD: dlinfo, which isn't fit for RL or RZ since it reports errors via
dlerror() rather than errno.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jul 29 16:24:35 2023 UTC (8 months, 2 weeks ago) by rin
Branch: MAIN
Changes since 1.1: +10 -10 lines
Diff to previous 1.1 (colored)

t_memfd_create: Fix printf-like format by using %zu for size_t, and
%jd for off_t with cast to intmax_t, respectively.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jul 29 12:16:34 2023 UTC (8 months, 2 weeks ago) by christos
Branch: MAIN

Add tests for t_memfd_create and fix bug found by tests

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>