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.
This commit is contained in:
John Baldwin 2016-03-31 21:25:40 +00:00
parent a8b2b39cce
commit c03094a4b6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297474

View File

@ -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);