<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/tests/sys, branch upstream/10.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=upstream%2F10.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=upstream%2F10.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2017-07-28T03:26:05Z</updated>
<entry>
<title>MFC r320446:</title>
<updated>2017-07-28T03:26:05Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-07-28T03:26:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f1d14159236883ea28164cfc51af477cba1b63af'/>
<id>urn:sha1:f1d14159236883ea28164cfc51af477cba1b63af</id>
<content type='text'>
trailing_slash is a TAP-compliant testcase; mark it as such, instead
of calling is a plain testcase.
</content>
</entry>
<entry>
<title>MFC r320445:</title>
<updated>2017-07-28T03:24:57Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-07-28T03:24:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ecf0f66ab36107483e026d2bfd7dab940f01c9a1'/>
<id>urn:sha1:ecf0f66ab36107483e026d2bfd7dab940f01c9a1</id>
<content type='text'>
Don't hardcode path to file in /tmp; this violates the kyua sandbox
</content>
</entry>
<entry>
<title>MFC r318593:</title>
<updated>2017-05-31T17:20:55Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2017-05-31T17:20:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a2528eb0ca82c7db61b7eb8c834de8d8765be66d'/>
<id>urn:sha1:a2528eb0ca82c7db61b7eb8c834de8d8765be66d</id>
<content type='text'>
Fix build of AIO tests with -DDEBUG

Also, redefine some constants for clarity.  No functional change.
</content>
</entry>
<entry>
<title>MFC r319056,r319058,r319059,r319060,r319061,r319078:</title>
<updated>2017-05-31T08:36:47Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-05-31T08:36:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9ad345a48373da8ff85d078e3134a5bb440e0dff'/>
<id>urn:sha1:9ad345a48373da8ff85d078e3134a5bb440e0dff</id>
<content type='text'>
r319056:

tests/sys/file/ftruncate_test: use an exit code of 1 instead
of -1 with err*(3).

An exit code of -1 is implementation defined -- it's best to stick
with something well-defined (1).

r319058:

Create a deterministic file in the kyua sandbox, instead of a
temporary file outside the kyua sandbox

This helps ensure that the file is removed at test exit, and as
a side effect, cures a warning about umasks with Coverity.

r319059:

Use an exit code of 1 instead of -1 for reasons noted in r319056

r319060:

Use main(void) instead of main(argc __unused, argv __unused)

r319061:

Don't leak accept_fd on thread completion

CID:		1296068

r319078:

Tweak r319058 slightly

- Specify an explicit mode when using O_CREAT per open(2).
- Fix the error message (add missing enclosing parentheses).

MFC with:	r319058
</content>
</entry>
<entry>
<title>MFC r318546:</title>
<updated>2017-05-27T23:04:48Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-05-27T23:04:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=183269e8f73b71d91207db851707a24453c71363'/>
<id>urn:sha1:183269e8f73b71d91207db851707a24453c71363</id>
<content type='text'>
sys/fs/tmpfs/vnd_test: make md(4) allocation dynamic

The previous logic was flawed in the sense that it assumed that /dev/md3
was always available. This was a caveat I noted in r306038, that I hadn't
gotten around to solving before now.

Cache the device for the mountpoint after executing mdmfs, then use the
cached value in basic_cleanup(..) when unmounting/disconnecting the md(4)
device.

Apply sed expressions to use reuse logic in the NetBSD code that could
also be applied to FreeBSD, just with different tools.
</content>
</entry>
<entry>
<title>MFC r317566:</title>
<updated>2017-05-05T16:24:35Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2017-05-05T16:24:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7d4ee1b034d8935831389f41d8206114270dc971'/>
<id>urn:sha1:7d4ee1b034d8935831389f41d8206114270dc971</id>
<content type='text'>
Don't pass size_t arguments to setsockopt(SO_SNDBUF/SO_RCVBUF).

These commands take an int. The tests work by accident on little-endian,
64-bit systems.

PR:		218919
Tested with:	qemu-cheri and CheriBSD built for mips64
Reviewed by:	asomers, ngie
Obtained from:	CheriBSD
Sponsored by:	DARPA, AFRL
</content>
</entry>
<entry>
<title>MFC r285117</title>
<updated>2017-04-18T16:17:38Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2017-04-18T16:17:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ddc5034c27aaed0c1d77076a928f8a4b238a6e8a'/>
<id>urn:sha1:ddc5034c27aaed0c1d77076a928f8a4b238a6e8a</id>
<content type='text'>
Make cleanup routines idempotent

cleanup routines can be executed at any point during the execution of the
body, including even before the body has done any real work.  In those
cases, cleanup routines should be careful to not raise spurious errors so
as to not "override" the actual result of the test case.

This is just general good coding style but is not a problem in practice
for these specific tests.  (The way I discovered the issue, though, was
due to a regression I introduced in Kyua itself while refactoring some
internals.)

MFC after:      1 week
</content>
</entry>
<entry>
<title>MFC r315412, r314852:</title>
<updated>2017-03-25T20:14:08Z</updated>
<author>
<name>Eric Badger</name>
<email>badger@FreeBSD.org</email>
</author>
<published>2017-03-25T20:14:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b6705875cb4061f6f72dde28447a81c0593752a0'/>
<id>urn:sha1:b6705875cb4061f6f72dde28447a81c0593752a0</id>
<content type='text'>
r315412:
    Don't clear p_ptevents on normal SIGKILL delivery

    The ptrace() user has the option of discarding the signal. In such a
    case, p_ptevents should not be modified. If the ptrace() user decides to
    send a SIGKILL, ptevents will be cleared in ptracestop(). procfs events
    do not have the capability to discard the signal, so continue to clear
    the mask in that case.

r314852:
    don't stop in issignal() if P_SINGLE_EXIT is set

    Suppose a traced process is stopped in ptracestop() due to receipt of a
    SIGSTOP signal, and is awaiting orders from the tracing process on how
    to handle the signal. Before sending any such orders, the tracing
    process exits. This should kill the traced process. But suppose a second
    thread handles the SIGKILL and proceeds to exit1(), calling
    thread_single(). The first thread will now awaken and will have a chance
    to check once more if it should go to sleep due to the SIGSTOP.  It must
    not sleep after P_SINGLE_EXIT has been set; this would prevent the
    SIGKILL from taking effect, leaving a stopped orphan behind after the
    tracing process dies.

    Also add new tests for this condition.

Sponsored by:	Dell EMC
</content>
</entry>
<entry>
<title>MFC r313992, r314075, r314118, r315484:</title>
<updated>2017-03-25T13:33:23Z</updated>
<author>
<name>Eric Badger</name>
<email>badger@FreeBSD.org</email>
</author>
<published>2017-03-25T13:33:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=21cbd2de3ee5b367f6b1eecf52427aa3b5b7730d'/>
<id>urn:sha1:21cbd2de3ee5b367f6b1eecf52427aa3b5b7730d</id>
<content type='text'>
r315484:
    ptrace_test: eliminate assumption about thread scheduling

    A couple of the ptrace tests make assumptions about which thread in a
    multithreaded process will run after a halt. This makes the tests less
    portable across branches, and susceptible to future breakage. Instead,
    twiddle thread scheduling and priorities to match the tests'
    expectation.

r314118:
    Actually fix buildworlds other than i386/amd64/sparc64 after r313992

    Disable offending test for platforms without a userspace visible
    breakpoint().

r314075:
    Fix world build for archs where __builtin_debugtrap() does not work.

    The offending code was introduced in r313992.

r313992:
    Defer ptracestop() signals that cannot be delivered immediately

    When a thread is stopped in ptracestop(), the ptrace(2) user may request
    a signal be delivered upon resumption of the thread. Heretofore, those signals
    were discarded unless ptracestop()'s caller was issignal(). Fix this by
    modifying ptracestop() to queue up signals requested by the ptrace user that
    will be delivered when possible. Take special care when the signal is SIGKILL
    (usually generated from a PT_KILL request); no new stop events should be
    triggered after a PT_KILL.

    Add a number of tests for the new functionality. Several tests were authored
    by jhb.

PR:		212607
Sponsored by:	Dell EMC
</content>
</entry>
<entry>
<title>MFC r314450,r313439:</title>
<updated>2017-03-07T01:52:50Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-03-07T01:52:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=92a942abc75d9e30d879961662f1e81bcfdef9ca'/>
<id>urn:sha1:92a942abc75d9e30d879961662f1e81bcfdef9ca</id>
<content type='text'>
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

r313439 | ngie | 2017-02-08 01:46:15 -0800 (Wed, 08 Feb 2017) | 25 lines

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 &lt;christos@netbsd.org&gt;
</content>
</entry>
</feed>
