- ok1(streq(buf, "This is a test\n"
- "Louder, like this: 'THIS IS A TEST'\r\n"));
+ lseek(fd, 0, SEEK_SET);
+ buf[read(fd, buf, sizeof(buf)-1)] = '\0';
+
+ ok1(strncmp(buf, input, strlen("This is a test")) == 0);
+ ok1(streq(buf + strlen("This is a test") + 1,
+ "Louder, like this: 'THIS IS A TEST'\r\n"));
+ }