Make nanosleep regress actually test something.
authorbluhm <bluhm@openbsd.org>
Thu, 29 Feb 2024 21:47:02 +0000 (21:47 +0000)
committerbluhm <bluhm@openbsd.org>
Thu, 29 Feb 2024 21:47:02 +0000 (21:47 +0000)
commit625a509b4972da8282e87b2961c9b12c87a35de9
treee8aa4f3ef78a77d2cbf409e3a4efaac7ae3945fa
parent97ff57730be341639e1f5e6fe0215754f0ca6a22
Make nanosleep regress actually test something.

Do not call exit 0 in parent and child process.  This skiped the
testing in multiple subtests.  Use meaningful variable names to
figure out what is going wrong after the tests have been enabled.
Fix the test logic.  Add missing break in switch statement, so that
success is reported.
regress/sys/kern/nanosleep/Makefile
regress/sys/kern/nanosleep/nanosleep.c