| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fgetln() returns a pointer to an array of characters that is 'len'
characters long, not 'len + 1'. While here, overwriting the contents
of the buffer returned by fgetln isn't really safe, so switch to using
getline() instead.
Note that these fixes are a subset of those applied to a
near-identical copy of this function in libc's resolv_test.c in commit
2afeaad315ac19450389b8f2befdbe7c91c37818.
Reviewed by: ngie
Reported by: CHERI (buffer overflow)
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D37886
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of using a simple global++ as the data race, with this change we
perform the increment by loading the global, delaying for a bit and then
storing back the incremented value. If I move the increment outside of the
mutex protected range, I can now see the data race with only 100 iterations
on amd64 in almost all cases. Before this change such a racy test almost
always passed with < 100,000 iterations and only reliably failed with the
current limit of 10 million.
I noticed this poorly written test because the mutex:mutex{2,3} and
timedmutex:mutex{2,3} tests were always timing out on our CheriBSD Jenkins.
Writing good concurrency tests is hard so I won't attempt to do so, but this
change should make the test more likely to fail if pthread_mutex_lock is not
implemented correctly while also significantly reducing the time it takes to
run these four tests. It will also reduce the time it takes for QEMU RISC-V
testsuite runs by almost 40 minutes (out of currently 7 hours).
Reviewed By: brooks, ngie
Differential Revision: https://reviews.freebsd.org/D26473
Notes:
svn path=/head/; revision=368055
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
NetBSD adapted and committed our r350620. Update to their version 1.8.
Reviewed by: ngie
Obtained from: NetBSD
MFC after: 1 week
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D21279
Notes:
svn path=/head/; revision=351118
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
pthread_cond_timedwait() should wait _at least_ until the timeout,
but it might appear to wait longer due to system activity and
scheduling. The test ignored fractional seconds when comparing the
actual and expected timeouts, so it allowed anywhere between zero
and one extra second of wait time. Zero is a bit unreasonable.
Compare fractional seconds so we always allow up to one extra second.
Reviewed by: ngie
MFC after: 1 week
Sponsored by: Dell EMC Isilon
Notes:
svn path=/head/; revision=350620
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is not required of a compliant implementation, but it's easy to
check for and helps improve compatibility with other common
implementations. Moreover, it's consistent with our
pthread_mutex_destroy().
PR: 234805
Reviewed by: jhb, kib, ngie
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D19496
Notes:
svn path=/head/; revision=344935
|
|
|
|
|
|
|
|
|
|
|
|
| |
tests.
Default value is 300. It takes ~310s to complete each of these tests
in QEMU/RISC-V.
Sponsored by: DARPA, AFRL
Notes:
svn path=/head/; revision=337381
|
|
|
|
| |
Notes:
svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312372
|
|
|
|
| |
Notes:
svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312304
|
|
|
|
| |
Notes:
svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312302
|
|
|
|
|
|
|
|
|
| |
This includes a number of accepted upstream fixes, as well as
a reimplementation of the net/carp/... testcase (which is
currently unused).
Notes:
svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312295
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
MFC after: 1 week
Reported by: Coverity
CID: 1268631, 1268633
Notes:
svn path=/head/; revision=311274
|
|
|
|
|
|
|
|
|
|
|
| |
The beforementioned libcalls both succeed if the return codes aren't -1
MFC after: 3 days
Reported by: Coverity
CID: 976790, 976791
Notes:
svn path=/head/; revision=311269
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
MFC after: 1 week
Reported by: Coverity
CID: 1254953, 1254954, 1254965, 1254966
Notes:
svn path=/head/; revision=311265
|
|
|
|
|
|
|
|
|
| |
Requested by: ngie
Sponsored by: DARPA, AFRL
Sponsored by: HEIF5
Notes:
svn path=/head/; revision=307583
|
|
|
|
|
|
|
|
|
| |
Discussed with: kib
Sponsored by: DARPA, AFRL
Sponsored by: HEIF5
Notes:
svn path=/head/; revision=307553
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
pthread_mutexattr_getprioceiling and pthread_mutexattr_setprioceiling
both return EINVAL if ->m_protocol != PTHREAD_PRIO_PROTECT. The
reasoning behind this decision isn't documented in neither the FreeBSD
nor the OpenGroup manpages.
Add printf's to add in debugging the issue
PR: 211802
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/projects/netbsd-tests-update-12/; revision=304036
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
| |
MFC after: 3 days
Notes:
svn path=/head/; revision=281966
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
Notes:
svn path=/head/; revision=277278
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=274626
|
|
|
|
|
|
|
| |
lib/libnetbsd/sys/time.h
Notes:
svn path=/head/; revision=274577
|
|
|
|
|
|
|
|
| |
Submitted by: pho
In collaboration with: kib
Notes:
svn path=/head/; revision=274576
|
|
|
|
|
|
|
|
|
| |
the output from the helper program
Submitted by: pho
Notes:
svn path=/head/; revision=274575
|
|
|
|
|
|
|
| |
Submitted by: pho
Notes:
svn path=/head/; revision=274574
|
|
|
|
|
|
|
|
| |
PR: 191906
In collaboration with: pho
Notes:
svn path=/head/; revision=274573
|
|
|
|
|
|
|
| |
Submitted by: pho
Notes:
svn path=/head/; revision=274572
|
|
|
|
|
|
|
|
|
| |
child processes
Submitted by: pho
Notes:
svn path=/head/; revision=274571
|
|
|
|
|
|
|
|
|
|
|
| |
atf-c/config.h
was removed from the build
Pointyhat to: me (again, for not running make delete-old after running test builds)
Notes:
svn path=/head/; revision=274079
|
|
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
|