The NetBSD Project

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

[BACK] Up to [cvs.NetBSD.org] / src / tests / kernel

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Nov 24 17:31:03 2023 UTC (15 months, 4 weeks ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +5 -5 lines
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:

fuse_opt_add_arg
fuse_opt_add_opt
fuse_opt_add_opt_escaped
fuse_opt_insert_arg
lseek
system

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
messages.

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

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Jul 29 16:24:35 2023 UTC (19 months, 3 weeks ago) by rin
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +10 -10 lines
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 - view: text, markup, annotated - select for diffs
Sat Jul 29 12:16:34 2023 UTC (19 months, 3 weeks ago) by christos
Branches: MAIN
Add tests for t_memfd_create and fix bug found by tests

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>