CVS commit: src/tests/kernel

2024-08-10 Thread Christoph Badura
Module Name:src Committed By: bad Date: Sat Aug 10 14:44:54 UTC 2024 Modified Files: src/tests/kernel: t_unmount.c Log Message: tests/kernel/t_unmount.c: don't need rv any more simplify as noticed by riastradh@. NFC. To generate a diff of this commit: cvs rdiff -u -r1.

CVS commit: src/tests/kernel

2024-08-10 Thread Christoph Badura
Module Name:src Committed By: bad Date: Sat Aug 10 14:44:54 UTC 2024 Modified Files: src/tests/kernel: t_unmount.c Log Message: tests/kernel/t_unmount.c: don't need rv any more simplify as noticed by riastradh@. NFC. To generate a diff of this commit: cvs rdiff -u -r1.

CVS commit: src/tests/kernel/kqueue

2024-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 10 22:03:59 UTC 2024 Modified Files: src/tests/kernel/kqueue: t_sig.c Log Message: tests/kqueue: fix mismatch between '=' and '==' To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/kernel/kqueue/t_sig

CVS commit: src/tests/kernel/kqueue

2024-07-10 Thread Roland Illig
Module Name:src Committed By: rillig Date: Wed Jul 10 22:03:59 UTC 2024 Modified Files: src/tests/kernel/kqueue: t_sig.c Log Message: tests/kqueue: fix mismatch between '=' and '==' To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/kernel/kqueue/t_sig

CVS commit: src/tests/kernel

2024-05-14 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue May 14 15:54:16 UTC 2024 Modified Files: src/tests/kernel: h_segv.c Log Message: tests/kernel/h_segv: Disable SIGFPE test on RISC-V. No floating-point exception traps on RISC-V. Also don't pass the result of divide-by-zer

CVS commit: src/tests/kernel

2024-05-14 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Tue May 14 15:54:16 UTC 2024 Modified Files: src/tests/kernel: h_segv.c Log Message: tests/kernel/h_segv: Disable SIGFPE test on RISC-V. No floating-point exception traps on RISC-V. Also don't pass the result of divide-by-zer

CVS commit: src/tests/kernel

2023-11-24 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Nov 24 16:36:23 UTC 2023 Modified Files: src/tests/kernel: t_rnd.c Log Message: t_rnd: Nix trailing whitespace. No functional change intended. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/tests/kerne

CVS commit: src/tests/kernel

2023-11-24 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Nov 24 16:36:23 UTC 2023 Modified Files: src/tests/kernel: t_rnd.c Log Message: t_rnd: Nix trailing whitespace. No functional change intended. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/tests/kerne

CVS commit: src/tests/kernel

2023-11-24 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Nov 24 16:35:51 UTC 2023 Modified Files: src/tests/kernel: t_rnd.c Log Message: t_rnd: Fix misuse of RZ. Not likely to matter, but in the unlikely event that rump_sys_close fails, it will return -1 and set errno as RL expe

CVS commit: src/tests/kernel

2023-11-24 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Nov 24 16:35:51 UTC 2023 Modified Files: src/tests/kernel: t_rnd.c Log Message: t_rnd: Fix misuse of RZ. Not likely to matter, but in the unlikely event that rump_sys_close fails, it will return -1 and set errno as RL expe

CVS commit: src/tests/kernel

2023-11-18 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Nov 18 19:46:55 UTC 2023 Modified Files: src/tests/kernel: t_fdrestart.c Log Message: t_fdrestart: Mark some tests no longer xfail. Backing out ad's changes last month seemed to fix the symptoms (although I'm pretty sure t

CVS commit: src/tests/kernel

2023-11-18 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Nov 18 19:46:55 UTC 2023 Modified Files: src/tests/kernel: t_fdrestart.c Log Message: t_fdrestart: Mark some tests no longer xfail. Backing out ad's changes last month seemed to fix the symptoms (although I'm pretty sure t

CVS commit: src/tests/kernel

2023-10-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Oct 15 15:18:17 UTC 2023 Modified Files: src/tests/kernel: t_fdrestart.c Log Message: t_fdrestart: Rework this to be a little more robust. For the write test, need to make sure the pipe's buffer is full first before the wr

CVS commit: src/tests/kernel

2023-10-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Oct 15 15:18:17 UTC 2023 Modified Files: src/tests/kernel: t_fdrestart.c Log Message: t_fdrestart: Rework this to be a little more robust. For the write test, need to make sure the pipe's buffer is full first before the wr

CVS commit: src/tests/kernel

2023-10-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Oct 15 14:30:52 UTC 2023 Modified Files: src/tests/kernel: t_fdrestart.c Log Message: t_fdrestart: Verify rump_sys_write failed second time around. PR kern/57659 To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.

CVS commit: src/tests/kernel

2023-10-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Oct 15 14:30:52 UTC 2023 Modified Files: src/tests/kernel: t_fdrestart.c Log Message: t_fdrestart: Verify rump_sys_write failed second time around. PR kern/57659 To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.

CVS commit: src/tests/kernel

2023-08-05 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Aug 5 08:05:16 UTC 2023 Modified Files: src/tests/kernel: t_fcntl.c Log Message: memfd(2): Run all tests; don't stop after the first failure. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/tests/kernel/t

CVS commit: src/tests/kernel

2023-08-05 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Aug 5 08:05:16 UTC 2023 Modified Files: src/tests/kernel: t_fcntl.c Log Message: memfd(2): Run all tests; don't stop after the first failure. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/tests/kernel/t

CVS commit: src/tests/kernel

2023-07-29 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Sat Jul 29 16:24:36 UTC 2023 Modified Files: src/tests/kernel: t_memfd_create.c Log Message: t_memfd_create: Fix printf-like format by using %zu for size_t, and %jd for off_t with cast to intmax_t, respectively. To generate a diff

CVS commit: src/tests/kernel

2023-07-29 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Sat Jul 29 16:24:36 UTC 2023 Modified Files: src/tests/kernel: t_memfd_create.c Log Message: t_memfd_create: Fix printf-like format by using %zu for size_t, and %jd for off_t with cast to intmax_t, respectively. To generate a diff

CVS commit: src/tests/kernel

2023-07-17 Thread matthew green
Module Name:src Committed By: mrg Date: Tue Jul 18 06:37:55 UTC 2023 Modified Files: src/tests/kernel: gen_t_subr_prf Log Message: provide more things needed by new subr_prf.c. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/tests/kernel/gen_t_subr_prf P

CVS commit: src/tests/kernel

2023-07-17 Thread matthew green
Module Name:src Committed By: mrg Date: Tue Jul 18 06:37:55 UTC 2023 Modified Files: src/tests/kernel: gen_t_subr_prf Log Message: provide more things needed by new subr_prf.c. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/tests/kernel/gen_t_subr_prf P

CVS commit: src/tests/kernel

2023-05-04 Thread David H. Gutteridge
Module Name:src Committed By: gutteridge Date: Fri May 5 01:27:18 UTC 2023 Modified Files: src/tests/kernel: t_trapsignal.sh Log Message: t_trapsignal.sh: fix head() function definitions of test cases To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/tests

CVS commit: src/tests/kernel

2023-05-04 Thread David H. Gutteridge
Module Name:src Committed By: gutteridge Date: Fri May 5 01:27:18 UTC 2023 Modified Files: src/tests/kernel: t_trapsignal.sh Log Message: t_trapsignal.sh: fix head() function definitions of test cases To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/tests

CVS commit: src/tests/kernel

2023-05-03 Thread David H. Gutteridge
Module Name:src Committed By: gutteridge Date: Thu May 4 00:02:10 UTC 2023 Modified Files: src/tests/kernel: t_fexecve.sh Log Message: t_fexecve.sh: fix head() function definitions of test cases To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/kerne

CVS commit: src/tests/kernel

2023-05-03 Thread David H. Gutteridge
Module Name:src Committed By: gutteridge Date: Thu May 4 00:02:10 UTC 2023 Modified Files: src/tests/kernel: t_fexecve.sh Log Message: t_fexecve.sh: fix head() function definitions of test cases To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/kerne

CVS commit: src/tests/kernel

2023-04-22 Thread David H. Gutteridge
Module Name:src Committed By: gutteridge Date: Sun Apr 23 00:46:46 UTC 2023 Modified Files: src/tests/kernel: t_open_pr_57260.c Log Message: t_open_pr_57260.c: KNF a block (spaces to tabs) To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/kernel/t_ope

CVS commit: src/tests/kernel

2023-04-22 Thread David H. Gutteridge
Module Name:src Committed By: gutteridge Date: Sun Apr 23 00:46:46 UTC 2023 Modified Files: src/tests/kernel: t_open_pr_57260.c Log Message: t_open_pr_57260.c: KNF a block (spaces to tabs) To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/kernel/t_ope

CVS commit: src/tests/kernel

2023-04-03 Thread David H. Gutteridge
Module Name:src Committed By: gutteridge Date: Mon Apr 3 21:35:59 UTC 2023 Modified Files: src/tests/kernel: t_magic_symlinks.sh Log Message: t_magic_symlinks.sh: fix line continuation in realpath head() This wasn't noticed before because the name of the head() itself wa

CVS commit: src/tests/kernel

2023-04-03 Thread David H. Gutteridge
Module Name:src Committed By: gutteridge Date: Mon Apr 3 21:35:59 UTC 2023 Modified Files: src/tests/kernel: t_magic_symlinks.sh Log Message: t_magic_symlinks.sh: fix line continuation in realpath head() This wasn't noticed before because the name of the head() itself wa

CVS commit: src/tests/kernel

2023-04-03 Thread David H. Gutteridge
Module Name:src Committed By: gutteridge Date: Mon Apr 3 20:08:38 UTC 2023 Modified Files: src/tests/kernel: t_magic_symlinks.sh Log Message: t_magic_symlinks.sh: fix naming of head() of realpath test case Addresses part of PR kern/57319 from Jim Spath. To generate a d

CVS commit: src/tests/kernel

2023-04-03 Thread David H. Gutteridge
Module Name:src Committed By: gutteridge Date: Mon Apr 3 20:08:38 UTC 2023 Modified Files: src/tests/kernel: t_magic_symlinks.sh Log Message: t_magic_symlinks.sh: fix naming of head() of realpath test case Addresses part of PR kern/57319 from Jim Spath. To generate a d

CVS commit: src/tests/kernel

2022-05-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat May 14 14:02:03 UTC 2022 Modified Files: src/tests/kernel: t_sysv.c Log Message: PR/56831: Eric van Gyzen: race condition in tests/kernel/t_sysv.c https://cgit.freebsd.org/src/commit/?id=20917cac7bcf216225a7b66f7b3a56f3764c5

CVS commit: src/tests/kernel

2022-05-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat May 14 14:02:03 UTC 2022 Modified Files: src/tests/kernel: t_sysv.c Log Message: PR/56831: Eric van Gyzen: race condition in tests/kernel/t_sysv.c https://cgit.freebsd.org/src/commit/?id=20917cac7bcf216225a7b66f7b3a56f3764c5

CVS commit: src/tests/kernel

2021-12-08 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Dec 9 06:38:23 UTC 2021 Modified Files: src/tests/kernel: t_magic_symlinks.sh Log Message: tests/t_magic_symlinks: remove duplicate word in test description To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/te

CVS commit: src/tests/kernel

2021-12-08 Thread Roland Illig
Module Name:src Committed By: rillig Date: Thu Dec 9 06:38:23 UTC 2021 Modified Files: src/tests/kernel: t_magic_symlinks.sh Log Message: tests/t_magic_symlinks: remove duplicate word in test description To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/te

CVS commit: src/tests/kernel/kqueue

2021-11-21 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sun Nov 21 09:35:39 UTC 2021 Modified Files: src/tests/kernel/kqueue: Makefile t_timer.c Log Message: Test kernel/kqueue/t_timer, subtests abstime, basic_timer and timer_units often fail when run on QEMU because QEMU misses clock

CVS commit: src/tests/kernel/kqueue

2021-11-21 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sun Nov 21 09:35:39 UTC 2021 Modified Files: src/tests/kernel/kqueue: Makefile t_timer.c Log Message: Test kernel/kqueue/t_timer, subtests abstime, basic_timer and timer_units often fail when run on QEMU because QEMU misses clock

CVS commit: src/tests/kernel/kqueue

2021-10-22 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Fri Oct 22 13:53:20 UTC 2021 Modified Files: src/tests/kernel/kqueue: t_timer.c Log Message: In the "modify" test case, immediately after modifying the timer, validate that its associated knote in the kernel has actually been dea

CVS commit: src/tests/kernel/kqueue

2021-10-22 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Fri Oct 22 13:53:20 UTC 2021 Modified Files: src/tests/kernel/kqueue: t_timer.c Log Message: In the "modify" test case, immediately after modifying the timer, validate that its associated knote in the kernel has actually been dea

CVS commit: src/tests/kernel/kqueue

2021-10-20 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Wed Oct 20 14:33:14 UTC 2021 Modified Files: src/tests/kernel/kqueue: t_vnode.c Log Message: Add a test case for PR kern/56460. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/kernel/kqueue/t_vnode.c Plea

CVS commit: src/tests/kernel/kqueue

2021-10-20 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Wed Oct 20 14:33:14 UTC 2021 Modified Files: src/tests/kernel/kqueue: t_vnode.c Log Message: Add a test case for PR kern/56460. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/kernel/kqueue/t_vnode.c Plea

CVS commit: src/tests/kernel/kqueue

2021-10-10 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Sun Oct 10 19:17:32 UTC 2021 Modified Files: src/tests/kernel/kqueue: t_scan.c Log Message: Fix typo in comment. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/kernel/kqueue/t_scan.c Please note that diffs a

CVS commit: src/tests/kernel/kqueue

2021-10-10 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Sun Oct 10 19:17:32 UTC 2021 Modified Files: src/tests/kernel/kqueue: t_scan.c Log Message: Fix typo in comment. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/kernel/kqueue/t_scan.c Please note that diffs a

CVS commit: src/tests/kernel/kqueue

2021-10-10 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Oct 10 18:11:31 UTC 2021 Modified Files: src/tests/kernel/kqueue: t_sig.c Log Message: The knotes for EVFILT_SIGNAL and EVFILT_PROC are maintained on a single per-process list, and kern_event.c,v 1.129 has several KASSERT()s

CVS commit: src/tests/kernel/kqueue

2021-10-10 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sun Oct 10 18:11:31 UTC 2021 Modified Files: src/tests/kernel/kqueue: t_sig.c Log Message: The knotes for EVFILT_SIGNAL and EVFILT_PROC are maintained on a single per-process list, and kern_event.c,v 1.129 has several KASSERT()s

CVS commit: src/tests/kernel/kqueue/read

2021-10-02 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sat Oct 2 18:21:05 UTC 2021 Modified Files: src/tests/kernel/kqueue/read: t_fifo.c Log Message: New EVFILT_READ test case for FIFOs; validates readability threshold and EV_EOF behavior. To generate a diff of this commit: cvs r

CVS commit: src/tests/kernel/kqueue/read

2021-10-02 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sat Oct 2 18:21:05 UTC 2021 Modified Files: src/tests/kernel/kqueue/read: t_fifo.c Log Message: New EVFILT_READ test case for FIFOs; validates readability threshold and EV_EOF behavior. To generate a diff of this commit: cvs r

CVS commit: src/tests/kernel

2021-10-01 Thread Martin Husemann
Module Name:src Committed By: martin Date: Fri Oct 1 18:18:32 UTC 2021 Modified Files: src/tests/kernel: Makefile Log Message: t_simplehook requires RUMP To generate a diff of this commit: cvs rdiff -u -r1.69 -r1.70 src/tests/kernel/Makefile Please note that diffs are

CVS commit: src/tests/kernel

2021-10-01 Thread Martin Husemann
Module Name:src Committed By: martin Date: Fri Oct 1 18:18:32 UTC 2021 Modified Files: src/tests/kernel: Makefile Log Message: t_simplehook requires RUMP To generate a diff of this commit: cvs rdiff -u -r1.69 -r1.70 src/tests/kernel/Makefile Please note that diffs are

CVS commit: src/tests/kernel

2019-10-20 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Oct 20 16:02:11 UTC 2019 Modified Files: src/tests/kernel: t_fcntl.c Log Message: opening a symlink with O_NOFOLLOW is expected to fail. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/kernel/t_fcntl.

CVS commit: src/tests/kernel

2019-10-20 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Oct 20 16:02:11 UTC 2019 Modified Files: src/tests/kernel: t_fcntl.c Log Message: opening a symlink with O_NOFOLLOW is expected to fail. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/kernel/t_fcntl.

Re: CVS commit: src/tests/kernel

2019-09-15 Thread Kamil Rytarowski
While there, it does not build for me: /usr/src/tests/kernel/h_fexecve.c: In function 'main': /usr/src/tests/kernel/h_fexecve.c:48:6: error: implicit declaration of function 'fexecve'; did you mean 'execve'? [-Werror=implicit-function-declaration] if (fexecve(fd, args, NULL) == -1) ^~~

Re: CVS commit: src/tests/kernel

2019-09-15 Thread Kamil Rytarowski
I have got no opinion, but merging them is good. Personally I prefer src/libc/* path as fexecve(2) is a libc public symbol. On 15.09.2019 20:06, Christos Zoulas wrote: > The tests are a different. Should we keep them both, or try to merge them? > I think that merging them is probably better. It is

Re: CVS commit: src/tests/kernel

2019-09-15 Thread Christos Zoulas
The tests are a different. Should we keep them both, or try to merge them? I think that merging them is probably better. It is also the case that perhaps we need to get rid of the kernel tests directory and move them to the respective bin and lib directories to avoid confusion? christos > On Sep

Re: CVS commit: src/tests/kernel

2019-09-15 Thread Kamil Rytarowski
On 15.09.2019 18:53, Christos Zoulas wrote: > Module Name: src > Committed By: christos > Date: Sun Sep 15 16:53:58 UTC 2019 > > Modified Files: > src/tests/kernel: Makefile > Added Files: > src/tests/kernel: h_fexecve.c t_fexecve.sh > > Log Message: > Add tests for fexecve(2

CVS commit: src/tests/kernel

2019-09-15 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Sep 15 16:53:58 UTC 2019 Modified Files: src/tests/kernel: Makefile Added Files: src/tests/kernel: h_fexecve.c t_fexecve.sh Log Message: Add tests for fexecve(2) To generate a diff of this commit: cvs rdiff -u -r1.

CVS commit: src/tests/kernel

2019-09-15 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Sep 15 16:53:58 UTC 2019 Modified Files: src/tests/kernel: Makefile Added Files: src/tests/kernel: h_fexecve.c t_fexecve.sh Log Message: Add tests for fexecve(2) To generate a diff of this commit: cvs rdiff -u -r1.

CVS commit: src/tests/kernel

2019-08-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Aug 15 08:46:09 UTC 2019 Modified Files: src/tests/kernel: Makefile Log Message: Adapt tests/kernel/t_subr_prf for MKSANITIZER Allow to rename snprintf-like functions to avoid clashes with a sanitizer. This tests needs a fixu

CVS commit: src/tests/kernel

2019-08-15 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Thu Aug 15 08:46:09 UTC 2019 Modified Files: src/tests/kernel: Makefile Log Message: Adapt tests/kernel/t_subr_prf for MKSANITIZER Allow to rename snprintf-like functions to avoid clashes with a sanitizer. This tests needs a fixu

CVS commit: src/tests/kernel

2019-06-07 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Jun 7 21:18:16 UTC 2019 Modified Files: src/tests/kernel: Makefile Added Files: src/tests/kernel: t_origin.sh Log Message: Add a $ORIGIN test To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 src/tests

CVS commit: src/tests/kernel

2019-06-07 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Jun 7 21:18:16 UTC 2019 Modified Files: src/tests/kernel: Makefile Added Files: src/tests/kernel: t_origin.sh Log Message: Add a $ORIGIN test To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 src/tests

CVS commit: src/tests/kernel

2019-06-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Jun 1 22:18:23 UTC 2019 Modified Files: src/tests/kernel: t_proccwd.c Log Message: Fix a mistake in a test for KERN_PROC_CWD Emit properly ENOENT scenario in chroot. For some reason the final patch did not hit the tree. To

CVS commit: src/tests/kernel

2019-06-01 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Sat Jun 1 22:18:23 UTC 2019 Modified Files: src/tests/kernel: t_proccwd.c Log Message: Fix a mistake in a test for KERN_PROC_CWD Emit properly ENOENT scenario in chroot. For some reason the final patch did not hit the tree. To

CVS commit: src/tests/kernel

2019-05-20 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue May 21 04:09:46 UTC 2019 Modified Files: src/tests/kernel: gen_t_subr_prf Log Message: add printf attribute To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/tests/kernel/gen_t_subr_prf Please note that diff

CVS commit: src/tests/kernel

2019-05-20 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue May 21 04:10:20 UTC 2019 Modified Files: src/tests/kernel: gen_t_subr_prf Log Message: unexpand To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/tests/kernel/gen_t_subr_prf Please note that diffs are not pu

CVS commit: src/tests/kernel

2019-05-20 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue May 21 04:09:46 UTC 2019 Modified Files: src/tests/kernel: gen_t_subr_prf Log Message: add printf attribute To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/tests/kernel/gen_t_subr_prf Please note that diff

CVS commit: src/tests/kernel

2019-05-20 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue May 21 04:10:20 UTC 2019 Modified Files: src/tests/kernel: gen_t_subr_prf Log Message: unexpand To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/tests/kernel/gen_t_subr_prf Please note that diffs are not pu

CVS commit: src/tests/kernel

2019-05-20 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue May 21 03:46:45 UTC 2019 Modified Files: src/tests/kernel: gen_t_subr_prf Log Message: Make the t_subr_prf test build after changes to sys/kern/subr_prf.c and while here add a simple test for the new kernel vasprintf(). To gene

CVS commit: src/tests/kernel

2019-05-20 Thread Robert Elz
Module Name:src Committed By: kre Date: Tue May 21 03:46:45 UTC 2019 Modified Files: src/tests/kernel: gen_t_subr_prf Log Message: Make the t_subr_prf test build after changes to sys/kern/subr_prf.c and while here add a simple test for the new kernel vasprintf(). To gene

re: CVS commit: src/tests/kernel

2019-01-13 Thread matthew green
> Modified Files: > src/tests/kernel: t_timeleft.c > > Log Message: > add call error checks, requested by mrg@ thanks!

re: CVS commit: src/tests/kernel

2019-01-13 Thread Christos Zoulas
On Jan 14, 9:29am, m...@eterna.com.au (matthew green) wrote: -- Subject: re: CVS commit: src/tests/kernel | "Christos Zoulas" writes: | > Module Name:src | > Committed By: christos | > Date: Sun Jan 13 15:36:57 UTC 2019 | > | > Modified

re: CVS commit: src/tests/kernel

2019-01-13 Thread matthew green
"Christos Zoulas" writes: > Module Name: src > Committed By: christos > Date: Sun Jan 13 15:36:57 UTC 2019 > > Modified Files: > src/tests/kernel: t_timeleft.c > > Log Message: > Increase the timeout a bit, and make sure we join so that there is no > race. i notice both pthread_ki

Re: CVS commit: src/tests/kernel

2016-12-06 Thread Kamil Rytarowski
On 07.12.2016 01:08, Christos Zoulas wrote: > In article <0a6e53d7-4f6e-6e25-cd61-2342e1c4e...@gmx.com>, > Kamil Rytarowski wrote: >> -=-=-=-=-=- >> -=-=-=-=-=- >> >> On 06.12.2016 19:59, Christos Zoulas wrote: >>> Module Name:src >>> Committed By: christos >>> Date:

Re: CVS commit: src/tests/kernel

2016-12-06 Thread Christos Zoulas
In article <0a6e53d7-4f6e-6e25-cd61-2342e1c4e...@gmx.com>, Kamil Rytarowski wrote: >-=-=-=-=-=- >-=-=-=-=-=- > >On 06.12.2016 19:59, Christos Zoulas wrote: >> Module Name: src >> Committed By:christos >> Date:Tue Dec 6 18:59:00 UTC 2016 >> >> Modified Files: >> src/

Re: CVS commit: src/tests/kernel

2016-12-06 Thread Kamil Rytarowski
On 06.12.2016 19:59, Christos Zoulas wrote: > Module Name: src > Committed By: christos > Date: Tue Dec 6 18:59:00 UTC 2016 > > Modified Files: > src/tests/kernel: t_ptrace_wait.c > > Log Message: > switch to using fork so we can see the child output. > atf_utils_fork() still wo

Re: CVS commit: src/tests/kernel

2016-11-25 Thread Christos Zoulas
On Nov 26, 3:24am, n...@gmx.com (Kamil Rytarowski) wrote: -- Subject: Re: CVS commit: src/tests/kernel | PT_READ_D and PT_READ_I read single int according to documentation. | | In tests io_read_d* io_read_i* data blocks are printed with appropriate | PRIxN. | | I cannot spot a mistake in the

Re: CVS commit: src/tests/kernel

2016-11-25 Thread Kamil Rytarowski
On 25.11.2016 23:41, Christos Zoulas wrote: > In article , > Christos Zoulas wrote: >> In article <20161125200105.5dbb4f...@cvs.netbsd.org>, >> Kamil Rytarowski wrote: >>> -=-=-=-=-=- >>> >>> Module Name:src >>> Committed By: kamil >>> Date: Fri Nov 25 20:01:05 UTC 201

Re: CVS commit: src/tests/kernel

2016-11-25 Thread Christos Zoulas
In article , Christos Zoulas wrote: >In article <20161125200105.5dbb4f...@cvs.netbsd.org>, >Kamil Rytarowski wrote: >>-=-=-=-=-=- >> >>Module Name: src >>Committed By: kamil >>Date: Fri Nov 25 20:01:05 UTC 2016 >> >>Modified Files: >> src/tests/kernel: t_ptrace_wait.c >> >>Log Messa

Re: CVS commit: src/tests/kernel

2016-11-25 Thread Christos Zoulas
In article <20161125200105.5dbb4f...@cvs.netbsd.org>, Kamil Rytarowski wrote: >-=-=-=-=-=- > >Module Name: src >Committed By: kamil >Date: Fri Nov 25 20:01:05 UTC 2016 > >Modified Files: > src/tests/kernel: t_ptrace_wait.c > >Log Message: >Fix several printf(3)-like functions usa

Re: CVS commit: src/tests/kernel

2016-11-09 Thread Kamil Rytarowski
On 10.11.2016 03:44, matthew green wrote: > it would actually be useful to have a testcase that ran iff > root *and* securelevel >= 0 and tests it is unable to attach > to pid 1. > > thanks. > > > .mrg. > OK, I will have a look at it. signature.asc Description: OpenPGP digital signature

re: CVS commit: src/tests/kernel

2016-11-09 Thread matthew green
it would actually be useful to have a testcase that ran iff root *and* securelevel >= 0 and tests it is unable to attach to pid 1. thanks. .mrg.

Re: CVS commit: src/tests/kernel

2016-11-09 Thread Kamil Rytarowski
On 10.11.2016 03:28, Paul Goyette wrote: > On Thu, 10 Nov 2016, matthew green wrote: > also, root can't attach to pid1 if securelevel is >= 0. >>> >>> To adjust securelevel this test would need to be modified to run under >>> rump ... We wouldn't want the test to manipulate securelevel of

re: CVS commit: src/tests/kernel

2016-11-09 Thread Paul Goyette
On Thu, 10 Nov 2016, matthew green wrote: also, root can't attach to pid1 if securelevel is >= 0. To adjust securelevel this test would need to be modified to run under rump ... We wouldn't want the test to manipulate securelevel of the running system. s/wouldn't want/*can't* by design have

re: CVS commit: src/tests/kernel

2016-11-09 Thread matthew green
> >> Log Message: > >> Add new tests attach_pid0 and attach_pid1 to t_ptrace > >> > >> attach_pid0 asserts that it is not valid to attach PID 0 as it is a special > >> kernel process. > >> > >> assert_pid1 asserts that non-root user cannot attach to PID 1 as it is the > >> /dev/init process. This t

re: CVS commit: src/tests/kernel

2016-11-09 Thread Paul Goyette
On Thu, 10 Nov 2016, matthew green wrote: "Kamil Rytarowski" writes: Module Name:src Committed By: kamil Date: Sun Nov 6 16:24:16 UTC 2016 Modified Files: src/tests/kernel: t_ptrace.c Log Message: Add new tests attach_pid0 and attach_pid1 to t_ptrace attach_pid0 asse

re: CVS commit: src/tests/kernel

2016-11-09 Thread matthew green
"Kamil Rytarowski" writes: > Module Name: src > Committed By: kamil > Date: Sun Nov 6 16:24:16 UTC 2016 > > Modified Files: > src/tests/kernel: t_ptrace.c > > Log Message: > Add new tests attach_pid0 and attach_pid1 to t_ptrace > > attach_pid0 asserts that it is not valid to atta

Re: CVS commit: src/tests/kernel

2016-11-06 Thread Kamil Rytarowski
On 06.11.2016 18:26, Nicolas Joly wrote: > On Sun, Nov 06, 2016 at 11:56:31PM +0700, Robert Elz wrote: >> Date:Sun, 6 Nov 2016 16:24:16 + >> From:"Kamil Rytarowski" >> Message-ID: <20161106162416.95d77f...@cvs.netbsd.org> >> >> | assert_pid1 asserts that non-ro

Re: CVS commit: src/tests/kernel

2016-11-06 Thread Nicolas Joly
On Sun, Nov 06, 2016 at 11:56:31PM +0700, Robert Elz wrote: > Date:Sun, 6 Nov 2016 16:24:16 + > From:"Kamil Rytarowski" > Message-ID: <20161106162416.95d77f...@cvs.netbsd.org> > > | assert_pid1 asserts that non-root user cannot attach to PID 1 as it is the > |

Re: CVS commit: src/tests/kernel

2016-11-06 Thread Kamil Rytarowski
On 06.11.2016 17:56, Robert Elz wrote: > Date:Sun, 6 Nov 2016 16:24:16 + > From:"Kamil Rytarowski" > Message-ID: <20161106162416.95d77f...@cvs.netbsd.org> > > | assert_pid1 asserts that non-root user cannot attach to PID 1 as it is the > | /dev/init process.

Re: CVS commit: src/tests/kernel

2016-11-06 Thread Robert Elz
Date:Sun, 6 Nov 2016 16:24:16 + From:"Kamil Rytarowski" Message-ID: <20161106162416.95d77f...@cvs.netbsd.org> | assert_pid1 asserts that non-root user cannot attach to PID 1 as it is the | /dev/init process. This tests is skipped if run as root. There's no ne

Re: CVS commit: src/tests/kernel

2016-11-06 Thread Christos Zoulas
On Nov 6, 1:48pm, n...@gmx.com (Kamil Rytarowski) wrote: -- Subject: Re: CVS commit: src/tests/kernel | My plan is to split t_ptrace into t_ptrace_wait, t_ptrace_waitpid etc. I | will try to avoid duplication of the code and prepare something like the | t_mutex and t_timedmutex pair. | | To

Re: CVS commit: src/tests/kernel

2016-11-06 Thread Kamil Rytarowski
On 03.11.2016 18:08, Kamil Rytarowski wrote: > > For now I'm focusing on functional tests, which are equivalent to > FreeBSD capabilities. This is why I will reschedule combination of > wait(2) usage functions for later and move to on other ptrace(2) use-cases. > With recent reported issues I'm

Re: CVS commit: src/tests/kernel

2016-11-03 Thread Kamil Rytarowski
On 03.11.2016 15:24, Christos Zoulas wrote: > In article <19801.1478175...@andromeda.noi.kre.to>, > Robert Elz wrote: >> >> Which is actually correct? (That is, which makes more sense, if it is >> not actually specified somewhere.) >> >> Please make the tests test correct behaviour, not just wh

Re: CVS commit: src/tests/kernel

2016-11-03 Thread Christos Zoulas
In article <19801.1478175...@andromeda.noi.kre.to>, Robert Elz wrote: > >Which is actually correct? (That is, which makes more sense, if it is >not actually specified somewhere.) > >Please make the tests test correct behaviour, not just what NetBSD happens >to do today. If NetBSD is doing som

Re: CVS commit: src/tests/kernel

2016-11-03 Thread Robert Elz
Date:Thu, 3 Nov 2016 11:20:45 + From:"Kamil Rytarowski" Message-ID: <20161103112045.a48aaf...@cvs.netbsd.org> | This test verifies calling raise(2) with the SIGCONT argument in the child. | The parent is notified with it and asserts that WIFCONTINUED() and |

Re: CVS commit: src/tests/kernel

2013-02-19 Thread Christos Zoulas
In article <20130219224428.5dd5717...@cvs.netbsd.org>, Paul Goyette wrote: >-=-=-=-=-=- > >+ const char *pipe_errmsg = "child: pipe write failed\n"; > > (void)unlink(lockfile); > >@@ -145,8 +146,8 @@ ATF_TC_BODY(randlock, tc) > switch (pid[i]) { > case 0: >

Re: CVS commit: src/tests/kernel

2013-02-19 Thread Joerg Sonnenberger
On Tue, Feb 19, 2013 at 02:45:43PM -0500, Julio Merino wrote: > On Tue, Feb 19, 2013 at 2:43 PM, Joerg Sonnenberger > wrote: > > On Tue, Feb 19, 2013 at 11:40:22AM -0800, Paul Goyette wrote: > >> Most of the printf's were already there before this round of > >> updates, and there's enough differen

Re: CVS commit: src/tests/kernel

2013-02-19 Thread Julio Merino
On Tue, Feb 19, 2013 at 2:43 PM, Joerg Sonnenberger wrote: > On Tue, Feb 19, 2013 at 11:40:22AM -0800, Paul Goyette wrote: >> Most of the printf's were already there before this round of >> updates, and there's enough differentiation in them to figure out >> which process is responsible. In any c

Re: CVS commit: src/tests/kernel

2013-02-19 Thread Joerg Sonnenberger
On Tue, Feb 19, 2013 at 11:40:22AM -0800, Paul Goyette wrote: > Most of the printf's were already there before this round of > updates, and there's enough differentiation in them to figure out > which process is responsible. In any case, the printf's aren't > critical to the test (until you need t

  1   2   >