NetBSD/tests/kernel
riastradh ef23f679e4 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.
2023-11-24 17:31:03 +00:00
..
kqueue Test kernel/kqueue/t_timer, subtests abstime, basic_timer and timer_units 2021-11-21 09:35:39 +00:00
threadpool_tester Fix spurios whitespace (thank you substandard vi clones). 2018-12-26 22:21:10 +00:00
tty Centralize the base rump libraries into a variable used by all the other 2020-03-01 18:08:12 +00:00
Makefile The t_fdrestart test requires rump. 2023-10-17 13:51:52 +00:00
Makefile.inc
gen_t_subr_prf provide more things needed by new subr_prf.c. 2023-07-18 06:37:55 +00:00
h_fexecve.c Add tests for fexecve(2) 2019-09-15 16:53:58 +00:00
h_fpufork.c Test that fpu state is preserved by fork. 2020-02-11 03:15:10 +00:00
h_getprocpath.c Add tests to make sure that the program name is what it is supposed to be. 2017-12-10 15:37:54 +00:00
h_interpreter.sh Add tests to make sure that the program name is what it is supposed to be. 2017-12-10 15:37:54 +00:00
h_ps_strings1.c
h_ps_strings2.c
h_segv.c Fix typo 2019-04-25 19:37:09 +00:00
t_epoll.c Add EPOLL_CLOEXEC (Theodore Preduta) 2023-07-30 18:31:13 +00:00
t_extattrctl.c Reference PRs consistently. 2020-06-26 07:50:11 +00:00
t_extent.c Don't play with "../.." in includes for h_macros.h; deal with it centrally. 2017-01-13 21:30:39 +00:00
t_fcntl.c memfd(2): Run all tests; don't stop after the first failure. 2023-08-05 08:05:16 +00:00
t_fdrestart.c t_fdrestart: Mark some tests no longer xfail. 2023-11-18 19:46:55 +00:00
t_fexecve.sh t_fexecve.sh: fix head() function definitions of test cases 2023-05-04 00:02:10 +00:00
t_filedesc.c Don't play with "../.." in includes for h_macros.h; deal with it centrally. 2017-01-13 21:30:39 +00:00
t_fpufork.sh Test that fpu state is preserved by fork. 2020-02-11 03:15:10 +00:00
t_interp.sh add a test to check that the interpreter is preserved when executing scripts. 2017-12-06 13:54:26 +00:00
t_kauth_pr_47598.c remove double t from targeted, add missing r to arbitrary 2022-01-26 11:48:53 +00:00
t_ksem.c Implement support for "pshared" POSIX semaphores. 2019-02-03 03:20:23 +00:00
t_lock.c Don't play with "../.." in includes for h_macros.h; deal with it centrally. 2017-01-13 21:30:39 +00:00
t_lockf.c
t_magic_symlinks.sh t_magic_symlinks.sh: fix line continuation in realpath head() 2023-04-03 21:35:59 +00:00
t_memfd_create.c tests: Audit RZ abuse. 2023-11-24 17:31:03 +00:00
t_mqueue.c PR/51871: Ngie Cooper: add fcntl.h for O_* fcntl/open constants 2017-01-14 20:57:24 +00:00
t_nointerpreter.sh Add a test case for PR kern/52744, which no longer appears to be present. 2020-06-25 16:16:48 +00:00
t_open_pr_57260.c t_open_pr_57260.c: KNF a block (spaces to tabs) 2023-04-23 00:46:46 +00:00
t_origin.sh Add a $ORIGIN test 2019-06-07 21:18:16 +00:00
t_proccwd.c Fix a mistake in a test for KERN_PROC_CWD 2019-06-01 22:18:23 +00:00
t_procpath.sh Add tests to make sure that the program name is what it is supposed to be. 2017-12-10 15:37:54 +00:00
t_ps_strings.sh
t_pty.c errno is irrelevant here. 2020-06-24 07:02:57 +00:00
t_rnd.c t_rnd: Nix trailing whitespace. 2023-11-24 16:36:23 +00:00
t_simplehook.sh Added tests for the linear hook APIs 2021-09-30 02:00:19 +00:00
t_sysctl.c
t_sysv.c PR/56831: Eric van Gyzen: race condition in tests/kernel/t_sysv.c 2022-05-14 14:02:03 +00:00
t_timeleft.c add call error checks, requested by mrg@ 2019-01-14 00:23:43 +00:00
t_trapsignal.sh t_trapsignal.sh: fix head() function definitions of test cases 2023-05-05 01:27:18 +00:00
t_umount.sh fix various typos in comment, documentation and log messages. 2022-05-24 20:50:17 +00:00
t_umountstress.sh
t_zombie.c s/estabilishing/establishing/ in copy pasted comment. 2022-05-24 20:08:38 +00:00