aboutsummaryrefslogtreecommitdiff
path: root/contrib/netbsd-tests/kernel
Commit message (Collapse)AuthorAgeFilesLines
* t_ptrace_wait.c: clean up trailing whitespaceEnji Cooper2026-02-081-12/+12
| | | | | | This is being done to aid with future potential updates of this file. MFC after: 1 week
* sysv test: properly wait for childrenEric van Gyzen2022-05-131-142/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the msg and shm tests, if the child exited before the parent entered sigsuspend(), the test would hang and time out. This was also a problem in the sem test, but the misuse of atf_tc_pass() masked it. Adding a short sleep before the sigsuspend() calls made the hang 100% reliable. With the same sleep in the new version, the test passes reliably. Remove calls to atf_tc_pass(). The call in the sem test broke the test by exiting prematurely, after only one child out of five had finished. The other two were harmless but unhelpful. Reduce a one-second sleep to a more reasonable duration so I can quickly run many iterations of the test. Where feasible, assert that wait() returns the child PID. While I'm here, use the more succinct ATF_REQUIRE* instead of if/atf_tc_fail/else. Flush stdout before forking to avoid double-flush. Use errx() when errno is irrelevant. Don't use ATF_REQUIRE* in children. Apparently, the output doesn't get saved. The exit status works, so it fails correctly, but silently. Re-enable the test in CI. PR: 233649 Reviewed by: markj (previous version) MFC after: 1 week Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D35187
* Temporarily skip flakey sys.kern.sysv_test.msg in CILi-Wen Hsu2020-06-261-0/+3
| | | | | | | PR: 233649 Notes: svn path=/head/; revision=362656
* Implement shmat(2) flag SHM_REMAP.Konstantin Belousov2019-01-161-5/+55
| | | | | | | | | | | | Based on the description in Linux man page. Reviewed by: markj, ngie (previous version) Sponsored by: Mellanox Technologies MFC after: 1 week Differential revision: https://reviews.freebsd.org/D18837 Notes: svn path=/head/; revision=343082
* Trim spaces at the end of lines.Konstantin Belousov2019-01-161-3/+3
| | | | | | | | | | Reviewed by: markj, ngie Sponsored by: Mellanox Technologies MFC after: 1 week Differential revision: https://reviews.freebsd.org/D18837 Notes: svn path=/head/; revision=343081
* Fix build post r330299Brooks Davis2018-03-021-2/+0
| | | | Notes: svn path=/head/; revision=330300
* Fix Coverity CIDs in the sys/kern/sysv_test testsAlan Somers2018-02-131-3/+4
| | | | | | | | | | | | | | | CID 979810: strcpy => strlcpy CID 1193367: don't leak a file descriptor CID 1299856: Check the return value of read(2) Reported by: Coverity Coverity CID: 978910 1193367 1299856 MFC after: 3 weeks X-MFC-With: 328896 Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=329236
* Fix and enable SysV IPC tests.Brooks Davis2018-02-051-16/+12
| | | | | | | | | | | | | | | | | | | | | Don't declare some types that FreeBSD incorrectly declares. Fix an incorrect call to open() (missing mode). ANSIfy prototypes. Enable SysV message queue, semaphore, and shared memory tests. With exception of the workaround for union semun, these fixes have been committed to NetBSD. Reviewed by: asomers Approved by: CheriBSD Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D13471 Notes: svn path=/head/; revision=328896
* Add abstime kqueue(2) timers and expand struct kevent members.Konstantin Belousov2017-06-172-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change implements NOTE_ABSTIME flag for EVFILT_TIMER, which specifies that the data field contains absolute time to fire the event. To make this useful, data member of the struct kevent must be extended to 64bit. Using the opportunity, I also added ext members. This changes struct kevent almost to Apple struct kevent64, except I did not changed type of ident and udata, the later would cause serious API incompatibilities. The type of ident was kept uintptr_t since EVFILT_AIO returns a pointer in this field, and e.g. CHERI is sensitive to the type (discussed with brooks, jhb). Unlike Apple kevent64, symbol versioning allows us to claim ABI compatibility and still name the new syscall kevent(2). Compat shims are provided for both host native and compat32. Requested by: bapt Reviewed by: bapt, brooks, ngie (previous version) Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D11025 Notes: svn path=/head/; revision=320043
* Merge in changes from ^/vendor/NetBSD/tests/dist@r313245Enji Cooper2017-02-041-3/+1001
| | | | | | | Diff reduce lib/libm/t_pow.c per upstream changes Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313247
* Merge ^/vendor/NetBSD/tests/dist@r312370Enji Cooper2017-01-181-2/+220
| | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312372
* Diff reduce with upstream and consolidate #ifdefs where possibleEnji Cooper2017-01-154-12/+0
| | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312243
* Pull in ^/vendor/NetBSD/tests/dist@r312219Enji Cooper2017-01-152-12/+327
| | | | | | | Remove divergence with upstream where possible Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312221
* One more sys/types.h kevent clarification missed in r312151Enji Cooper2017-01-141-1/+1
| | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312152
* Clarify why sys/types.h #include is needed on FreeBSDEnji Cooper2017-01-143-3/+3
| | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312151
* Merge content currently under test from ^/vendor/NetBSD/tests/dist/@r312123Enji Cooper2017-01-1432-66/+2197
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312126
* Upgrade NetBSD tests to 01.11.2017_23.20 snapshotEnji Cooper2017-01-1310-1/+6009
| | | | | | | | | | | | | | | This contains some new testcases in /usr/tests/...: - .../lib/libc - .../lib/libthr - .../lib/msun - .../sys/kern Tested on: amd64, i386 MFC after: 1 month Notes: svn path=/head/; revision=312008
* Fix tests/sys/kqueue NetBSD tests on 32-bit platforms by using properEnji Cooper2016-09-066-0/+24
| | | | | | | | | | | | | format specifier for pointers when printing them out with printf(3) MFC after: 57 days Pointyhat to: ngie Reported by: bz, cy, Jenkins (i386 job) Submitted by: cy Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=305483
* Port contrib/netbsd-tests/kernel/kqueue/... as tests/sys/kqueue/...Enji Cooper2016-09-064-0/+22
| | | | | | | | | | | | | proc2_test must be skipped because the invariant tested (`ke.fflags & NOTE_TRACKERR`) doesn't pass. MFC after: 58 days Submitted by: kib (earlier form) Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D6172 Notes: svn path=/head/; revision=305468
* Checkpoint initial integration workEnji Cooper2016-08-126-16/+571
| | | | | | | | | | | | - Some of the lib/libc and lib/thr tests fail - lib/msun/exp_test:exp2_values now passes with clang 3.8.0 The Makefiles in contrib/netbsd-tests were pruned as they have no value Sponsored by: EMC / Isilon Storage Division Notes: svn path=/projects/netbsd-tests-update-12/; revision=304003
* Port contrib/netbsd-tests/kernel/t_mqueue.c to FreeBSDEnji Cooper2015-11-161-0/+19
| | | | | | | | | | | | | | - Add missing headers - Ensure mqueuefs is loaded - Make sure the mqueuefs path is absolute and relative to / - Cast the result of mq_open returning -1 to (mqd_t) to mute a compiler warning MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=290913
* Ignore EINTR from usleep(3) in try_locks(..)Enji Cooper2015-11-161-0/+3
| | | | | | | | | | | | NetBSD's usleep(3) only returns -1/sets errno=EINVAL when `microseconds` is one million or more MFC after: 3 days Submitted by: pho Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=290911
* Import the NetBSD test suite from ^/vendor/NetBSD/tests/09.30.2014_20.45 ,Enji Cooper2014-10-0231-0/+4964
minus the vendor Makefiles Provide directions for how to bootstrap the vendor sources in FREEBSD-upgrade MFC after 2 weeks Discussed with: rpaulo Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=272458