fifo_misc test: Fix swapped lseek arguments.

It worked regardless because SEEK_CUR happens to be 1.
This commit is contained in:
Jilles Tjoelker 2011-11-05 22:33:19 +00:00
parent 6e678e0ce9
commit ddc13b6f44

View File

@ -115,7 +115,7 @@ test_lseek(void)
exit(-1);
}
if (lseek(reader_fd, SEEK_CUR, 1) >= 0) {
if (lseek(reader_fd, 1, SEEK_CUR) >= 0) {
warnx("%s: lseek succeeded instead of returning ESPIPE",
__func__);
cleanfifo("testfifo", reader_fd, writer_fd);