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:
parent
a8b2b39cce
commit
c03094a4b6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user