summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libpthread
Commit message (Collapse)AuthorAgeFilesLines
* MFC r313439,r314450:ngie2017-03-0710-100/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r313439: Merge content from ^/projects/netbsd-tests-upstream-01-2017 into ^/head The primary end-goal of this drop is ease future merges with NetBSD and collaborate further with the NetBSD project. The goal was (largely, not completely as some items are still oustanding in the NetBSD GNATS system) achieved by doing the following: - Pushing as many changes required to port contrib/netbsd-tests back to NetBSD as possible, then pull the upstream applied changes back in to FreeBSD. - Diff reduce with upstream where possible by: -- Improving libnetbsd header, etc compat glue. -- Using _SED variables to modify test scripts on the fly for items that could not be upstreamed to NetBSD. As a bonus for this work, this change also introduces testcases for uniq(1). Many thanks to Christos for working with me to get many of the changes back into the NetBSD project. In collaboration with: Christos Zoulas <christos@netbsd.org> r314450: Add additional __FreeBSD_version guards around the hsearch_r testcases The reasoning for this is the same as r276046: to ease MFCing the tests to ^/stable/10 . This was accidentally missed in r313439
* MFC r312008:ngie2017-02-123-22/+212
| | | | | | | | | | | | | Upgrade NetBSD tests to 01.11.2017_23.20 snapshot This contains some new testcases in /usr/tests/...: - .../lib/libc - .../lib/libthr - .../lib/msun - .../sys/kern Tested on: amd64, i386
* MFC r311265,r311274:ngie2017-01-132-0/+30
| | | | | | | | | | | | | | | | | | r311265: fpu: ensure calls to pthread_create succeed and test sched_yield to make sure it returns 0 sched_yield tests for values returning 0 of type int and sched_yield is of type long, so the test is a mismatch CID: 1254953, 1254954, 1254965, 1254966 r311274: run: ensure pthread_condattr_{init,setclock} is successful CID: 1268631, 1268633
* MFC r311269:ngie2017-01-071-0/+12
| | | | | | | | swapcontext1: test for getcontext(3) and swapcontext(3) success properly The beforementioned libcalls both succeed if the return codes aren't -1 CID: 976790, 976791
* MFC r305358:ngie2016-12-033-7/+316
| | | | | | | | | | | | | | | | | | | | | Update contrib/netbsd-tests with new content from NetBSD This updates the snapshot from 09/30/2014 to 08/11/2016 This brings in a number of new testcases from upstream, most notably: - bin/cat - lib/libc - lib/msun - lib/libthr - usr.bin/sort lib/libc/tests/stdio/open_memstream_test.c was moved to lib/libc/tests/stdio/open_memstream2_test.c to accomodate the new open_memstream test from NetBSD. Tested on: amd64 (VMware fusion VM; various bare metal platforms); i386 (VMware fusion VM); make tinderbox
* Add #include sys/types.h for register_t for mipsngie2015-04-251-0/+3
| | | | MFC after: 3 days
* Fix lib/libthr/tests/detach_testngie2015-01-171-1/+15
| | | | | | | | | | | | - Eliminate race with liberal use of sleep(3) [1] - Fix NetBSD-specific implementation way of testing result from pthread_cancel by testing with `td` instead of `NULL` [2] PR: 196738 [1] PR: 191906 [2] MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Mechanically replace #if defined(__FreeBSD__) and #if defined(__NetBSD__) withngie2014-11-172-2/+2
| | | | | | | | | their #ifdef equivalents for everything changed in contrib/netbsd-tests. There are some items from the vendor tree that use #if defined(__FreeBSD__) or #if defined(__NetBSD__) which are being left alone Requested by: bde, rpaulo Sponsored by: EMC / Isilon Storage Division
* Add missing sys/time.h #include for timespecsub macro in ↵ngie2014-11-163-0/+12
| | | | lib/libnetbsd/sys/time.h
* Port helper program to FreeBSD, similar to ../../lib/libc/stdlib/h_atexit.cngie2014-11-161-0/+20
| | | | | Submitted by: pho In collaboration with: kib
* #ifdef out a printf on !NetBSD that causes the testcase to fail when comparingngie2014-11-161-0/+2
| | | | | | the output from the helper program Submitted by: pho
* Add pthread_np.h #include and initialize the pthread attribute on FreeBSDngie2014-11-161-0/+7
| | | | Submitted by: pho
* Expect :pthread_detach to fail with EINVAL instead of ESRCH on FreeBSDngie2014-11-161-0/+4
| | | | | PR: 191906 In collaboration with: pho
* Only expect timeouts on powerpc with NetBSDngie2014-11-161-0/+12
| | | | Submitted by: pho
* Use _exit instead of exit so the file descriptors aren't flushed twice in thengie2014-11-161-0/+8
| | | | | | child processes Submitted by: pho
* Import proper fix for misc/49356 (/usr/include/atf-c/config.h) after ↵ngie2014-11-042-6/+4
| | | | | | | | atf-c/config.h was removed from the build Pointyhat to: me (again, for not running make delete-old after running test builds)
* Import the NetBSD test suite from ^/vendor/NetBSD/tests/09.30.2014_20.45 ,ngie2014-10-0235-0/+4749
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
OpenPOWER on IntegriCloud