| #
e0c6a19a |
| 23-Jan-2025 |
christos <christos@NetBSD.org> |
add new test
|
| #
659e6db5 |
| 18-Jan-2025 |
rillig <rillig@NetBSD.org> |
tests/gcov: demonstrate wrong coverage report after vfork/exec
Discovered in usr.bin/make, function Cmd_Exec.
The coverage test I ran on 2024-07-13 was still good. I don't remember the exact versio
tests/gcov: demonstrate wrong coverage report after vfork/exec
Discovered in usr.bin/make, function Cmd_Exec.
The coverage test I ran on 2024-07-13 was still good. I don't remember the exact version of NetBSD-current I was running back then.
With NetBSD-current from 2025-01-17, gcov does not report full coverage data after a vfork/exec call. Running the test program inside ktrace shows that after a vfork call, the child process writes its coverage data back, probably right before the exec call, but the parent process doesn't.
Running a child process through system(3) is not affected; there, posix_spawn is used instead of vfork/exec.
show more ...
|
| #
945dd8ed |
| 10-Jan-2025 |
rillig <rillig@NetBSD.org> |
tests/make: test expressions based on undefined variables
When an undefined variable is used in a conditional, make complains about "Malformed conditional", which is wrong since the conditional is w
tests/make: test expressions based on undefined variables
When an undefined variable is used in a conditional, make complains about "Malformed conditional", which is wrong since the conditional is well-formed but errors out during evaluation.
In order to fix this wrong error message and preserve the remaining behavior, cover the places in which an expression is evaluated with undefined expressions being an error (VARE_EVAL_DEFINED), but with neither producing an error message nor handling errors. This combination results in the same behavior as evaluating the expressions in the mode that allows undefined variables to be used in expressions.
show more ...
|
| #
9ab9c43b |
| 02-Jan-2025 |
kre <kre@NetBSD.org> |
Fix build after recent regex tests addition (make it be an addition, and don't forget tests/libtre)
|
| #
b248d216 |
| 01-Jan-2025 |
christos <christos@NetBSD.org> |
new regex test.
|
| #
36226f8e |
| 23-Dec-2024 |
riastradh <riastradh@NetBSD.org> |
distrib/sets/lists/tests/mi: Copied & pasted wrong line, oops.
This shiny new test is definitely not obsolete!
Should fix:
atf-run: ERROR: Cannot locate the t_time_arith file
PR kern/58922: itime
distrib/sets/lists/tests/mi: Copied & pasted wrong line, oops.
This shiny new test is definitely not obsolete!
Should fix:
atf-run: ERROR: Cannot locate the t_time_arith file
PR kern/58922: itimer(9): arithmetic overflow PR kern/58925: itimer(9) responds erratically to clock wound back PR kern/58926: itimer(9) integer overflow in overrun counting PR kern/58927: itimer(9): overrun accounting is broken
show more ...
|
| #
faf3bea1 |
| 22-Dec-2024 |
riastradh <riastradh@NetBSD.org> |
t_time_arith: New test for timer calculations.
This will facilitate fixing various problems in the arithmetic to determine, given an itimer's scheduled time (it_value) and periodic interval (it_inte
t_time_arith: New test for timer calculations.
This will facilitate fixing various problems in the arithmetic to determine, given an itimer's scheduled time (it_value) and periodic interval (it_interval) along with the current time of actual expiry (now), what time the itimer should be rescheduled for (next, new value of it_timer) on the same clock.
Later we can also put tests for other functions like tvtohz here, and make them test many different values of hz/tick.
XXX Not 100% sure about all of these cases -- there is some room for reasonable discussion about what the right answer is. But we have unquestionably implemented the wrong thing for many of these cases, even if the answers this test checks for may not be quite right yet.
PR kern/58922: itimer(9): arithmetic overflow PR kern/58925: itimer(9) responds erratically to clock wound back PR kern/58926: itimer(9) integer overflow in overrun counting PR kern/58927: itimer(9): overrun accounting is broken
show more ...
|
| #
676247aa |
| 18-Dec-2024 |
riastradh <riastradh@NetBSD.org> |
tests/usr.bin/cc: Add test for ctype(3) detection.
PR lib/58912: ctype(3) abuse detection fails for variable references
|
| #
4cee645c |
| 17-Dec-2024 |
christos <christos@NetBSD.org> |
add a PT_KILL test.
|
| #
a8016b51 |
| 08-Dec-2024 |
rillig <rillig@NetBSD.org> |
lint: warn about do-while macros that end with a semicolon
|
| #
e3a5018b |
| 01-Dec-2024 |
rillig <rillig@NetBSD.org> |
lint: warn about function definitions that still use identifier lists
|
| #
e79ed500 |
| 23-Nov-2024 |
rillig <rillig@NetBSD.org> |
lint: use separate message when discarding a qualifier in call
|
| #
b48dffc9 |
| 10-Nov-2024 |
riastradh <riastradh@NetBSD.org> |
tests/kernel/t_cloexec: New tests for close-on-exec.
Verified that the following tests fail on a netbsd-10 kernel:
- clonedev_posixspawn - dup3_posixspawn - fcntldupfd_posixspawn
PR kern/58822: cl
tests/kernel/t_cloexec: New tests for close-on-exec.
Verified that the following tests fail on a netbsd-10 kernel:
- clonedev_posixspawn - dup3_posixspawn - fcntldupfd_posixspawn
PR kern/58822: close-on-exec is broken for dup3 and opening cloning devices
show more ...
|
| #
7c5d5dfd |
| 30-Oct-2024 |
christos <christos@NetBSD.org> |
Hook zstd to the build and enable it for libarchive and file.
|
| #
8b06161d |
| 18-Oct-2024 |
christos <christos@NetBSD.org> |
add makefs test
|
| #
c13926e9 |
| 17-Oct-2024 |
christos <christos@NetBSD.org> |
more libarchive tests
|
| #
c2171e15 |
| 12-Oct-2024 |
riastradh <riastradh@NetBSD.org> |
ftp(1): Add test for custom HTTP header fields.
Based on a patch from Sunil Nimmagadda <sunil@nimmagadda.net>.
PR bin/58581: ftp(1) should allow specifying header fields in http requests
|
| #
e4f43b7b |
| 09-Oct-2024 |
kre <kre@NetBSD.org> |
Add a test for clock_nanotime() [ PR kern/58733 ]
Add a t_nanosleep test to the kernel tests, to (to a limited extent) validate its functionality.
Initially this concentrates on the issue from PR k
Add a test for clock_nanotime() [ PR kern/58733 ]
Add a t_nanosleep test to the kernel tests, to (to a limited extent) validate its functionality.
Initially this concentrates on the issue from PR kern/58733 where if a process paused in nanosleep() is stopped, and then continued, and if it is using TIMER_ABSTIME, the call will return prematurely, but indicating success.
There are (currently) 4 test cases, to test all 4 possibilities using CLOCK_MONOTONIC and CLOCK_REALTIME (if someone wants to add any other clocks that make sense, that should be easy) and TIMER_ABSTIME and TIMER_RELTIME.
Currently both TIMER_ABSTIME tests fail (the TIMER_RELTIME tests pass). When the kernel bug is fixed, the ABSTIME tests should be fixed along with it.
These tests are currently somewhat crude, and I'm not sure how well they will work on a qemu test system (they work as expected on bare metal).
show more ...
|
| #
fa6c0a34 |
| 03-Oct-2024 |
christos <christos@NetBSD.org> |
new semtimedop(2) GSoC 2024 (Shivraj Jamgade)
|
| #
131535b7 |
| 19-Sep-2024 |
gdt <gdt@NetBSD.org> |
tests: Add test for remquo
This test currently fails, because remquo has bugs. (A bugfix will be committed soon.) Test vectors derived from results from code by Charles Karney in GeodesicLib/proj,
tests: Add test for remquo
This test currently fails, because remquo has bugs. (A bugfix will be committed soon.) Test vectors derived from results from code by Charles Karney in GeodesicLib/proj, and manually inspected.
show more ...
|
| #
efcb344a |
| 15-Sep-2024 |
martin <martin@NetBSD.org> |
Mark new if_bridge test files as conditional on RUMP
|
| #
394db10a |
| 09-Sep-2024 |
riastradh <riastradh@NetBSD.org> |
math.h: Add math_errhandling, MATH_ERRNO, MATH_ERREXCEPT.
XXX Should maybe put a __math_errhandling in machine/math.h, but only VAX uses MATH_ERRNO and that's not likely to change any time soon, so
math.h: Add math_errhandling, MATH_ERRNO, MATH_ERREXCEPT.
XXX Should maybe put a __math_errhandling in machine/math.h, but only VAX uses MATH_ERRNO and that's not likely to change any time soon, so this will serve for now with less churn.
PR standards/56234: missing C99 frobs in <math.h>
show more ...
|
| #
5c929688 |
| 03-Sep-2024 |
ozaki-r <ozaki-r@NetBSD.org> |
distrib: install uuencoded pcap files for testing
|
| #
66e07482 |
| 02-Sep-2024 |
ozaki-r <ozaki-r@NetBSD.org> |
distrib, etc: install shmif_pcapin and its tests
|
| #
0d283a3a |
| 27-Aug-2024 |
riastradh <riastradh@NetBSD.org> |
arc4random(3): Add automatic tests.
This verifies that: - arc4random zeroes its state and reseeds itself on fork - arc4random reseeds itself on entropy consolidation (e.g., VM clone) - arc4random fa
arc4random(3): Add automatic tests.
This verifies that: - arc4random zeroes its state and reseeds itself on fork - arc4random reseeds itself on entropy consolidation (e.g., VM clone) - arc4random falls back to global state if it can't allocate local state because address space limits cause mmap to fail
NOTE: This adds a new libc symbol __arc4random_global, but it's in the reserved namespace and only used by t_arc4random, so no libc minor bump.
PR kern/58632: getentropy(2) and arc4random(3) do not reseed on VM fork
show more ...
|