diff options
author | jhb <jhb@FreeBSD.org> | 2016-03-31 21:25:40 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2016-03-31 21:25:40 +0000 |
commit | e935e22d083201fa7f2be509db0024d02dba4301 (patch) | |
tree | 753c354299df3cce05551352eb2d063289567c25 /tests/sys/aio | |
parent | 970d5635319b958f426309ee4c184ec94bb69368 (diff) | |
download | FreeBSD-src-e935e22d083201fa7f2be509db0024d02dba4301.zip FreeBSD-src-e935e22d083201fa7f2be509db0024d02dba4301.tar.gz |
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.
Diffstat (limited to 'tests/sys/aio')
-rw-r--r-- | tests/sys/aio/aio_test.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/sys/aio/aio_test.c b/tests/sys/aio/aio_test.c index 99ecc28..5515161 100644 --- a/tests/sys/aio/aio_test.c +++ b/tests/sys/aio/aio_test.c @@ -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); |