Author: jilles
Date: Sat Nov 5 22:33:19 2011
New Revision: 227124
URL: http://svn.freebsd.org/changeset/base/227124
Log:
fifo_misc test: Fix swapped lseek arguments.
It worked regardless because SEEK_CUR happens to be 1.
Modified:
head/tools/regression/fifo/fifo_misc/fifo_misc.c
Modified: head/tools/regression/fifo/fifo_misc/fifo_misc.c
==============================================================================
--- head/tools/regression/fifo/fifo_misc/fifo_misc.c Sat Nov 5 22:25:15
2011 (r227123)
+++ head/tools/regression/fifo/fifo_misc/fifo_misc.c Sat Nov 5 22:33:19
2011 (r227124)
@@ -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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"