svn commit: r297474 - head/tests/sys/aio
John Baldwin
jhb at FreeBSD.org
Thu Mar 31 21:25:42 UTC 2016
Author: jhb
Date: Thu Mar 31 21:25:40 2016
New Revision: 297474
URL: https://svnweb.freebsd.org/changeset/base/297474
Log:
Correct error messages in recently added test.
The large read test uses an empty file created via mkstemp() rather than
/dev/null as character devices are subject to two different clamping
sysctls. However, I forgot to update some of the error messages after
changing to mkstemp() that were still referring to /dev/null.
Modified:
head/tests/sys/aio/aio_test.c
Modified: head/tests/sys/aio/aio_test.c
==============================================================================
--- head/tests/sys/aio/aio_test.c Thu Mar 31 21:15:00 2016 (r297473)
+++ head/tests/sys/aio/aio_test.c Thu Mar 31 21:25:40 2016 (r297474)
@@ -696,7 +696,7 @@ ATF_TC_BODY(aio_large_read_test, tc)
if (nread == -1)
atf_tc_fail("aio_waitcomplete() failed: %s", strerror(errno));
if (nread != 0)
- atf_tc_fail("aio_read() from /dev/null returned data: %zd",
+ atf_tc_fail("aio_read() from empty file returned data: %zd",
nread);
memset(&cb, 0, sizeof(cb));
@@ -716,9 +716,7 @@ ATF_TC_BODY(aio_large_read_test, tc)
goto finished;
atf_tc_fail("aio_waitcomplete() failed: %s", strerror(errno));
}
- atf_tc_fail(
- "aio_read() of too large read size from /dev/null returned: %zd",
- nread);
+ atf_tc_fail("aio_read() of too large read size returned: %zd", nread);
finished:
close(fd);
More information about the svn-src-all
mailing list