freebsd-dev/tests/sys
Enji Cooper b42fffb4ef Replace for/retry loops with "wait_for_ggate_device" calls and check
results of commands

As noted in r313008, the underlying issue was that geom_gate device
creation wasn't created at ggatel command completion, but some short
time after. ggatec(8) employs similar logic when creating geom_gate(4)
devices.

Switch from retry loops (after the ggatec/dd write calls) to
wait_for_ggate_device function calls after calling ggatec(8) instead
to detect the presence of the /dev/ggate* device, as this function is
sufficient for determining whether or not the character device is ready
for testing

While here, use atf_check consistently with all dd calls to ensure that
data output is as expected.

MFC after:	1 week
Reviewed by:	asomers
Differential Revision:	D9409
Sponsored by:	Dell EMC Isilon
2017-02-02 03:54:43 +00:00
..
acl Expect 01:main to fail 2016-12-03 02:24:15 +00:00
aio Fix build of aio_test on MIPS, where the compiler warns about the local 2017-01-28 12:26:22 +00:00
fifo Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
file Remove unused vars to fix -Wunused issues 2017-01-14 04:10:04 +00:00
fs Add include Makefiles for tests/sys/{fs,kern,kqueue,mac}/... 2017-01-14 20:21:21 +00:00
geom Replace for/retry loops with "wait_for_ggate_device" calls and check 2017-02-02 03:54:43 +00:00
kern calculate_crc32c: Add SSE4.2 implementation on x86 2017-01-31 03:26:32 +00:00
kqueue Add include Makefiles for tests/sys/{fs,kern,kqueue,mac}/... 2017-01-14 20:21:21 +00:00
mac Add include Makefiles for tests/sys/{fs,kern,kqueue,mac}/... 2017-01-14 20:29:26 +00:00
mqueue Export the mq_getfd_np() symbol from librt.so, which allows to get 2016-10-02 17:02:59 +00:00
netinet Add tests for multi-fib IPv6 routing 2017-01-31 20:13:50 +00:00
opencrypto Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
pjdfstest DIRDEPS_BUILD: Add some missing dirctories to the build. 2016-08-31 19:30:59 +00:00
posixshm Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
sys DIRDEPS_BUILD: Add some missing dirctories to the build. 2016-08-31 19:30:59 +00:00
vfs Mark testcases which use cap_enter as expected failures until the 2017-01-15 09:13:41 +00:00
vm Fix -Wsign-compare warnings 2017-01-14 04:09:01 +00:00
Makefile Integrate contrib/netbsd-tests/fs/tmpfs into the FreeBSD test suite 2016-10-21 05:24:08 +00:00
Makefile.depend DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
Makefile.inc Enable WARNS?= 6 across all of tests/sys 2017-01-14 04:20:06 +00:00