Lines Matching defs:buf
224 char buf[PAGE_SIZE] = {testChar, (char)(testChar + 3)};
230 int wByte = write(fd, buf, len);
241 read(fd, buf, len);
242 if (buf[0] != mem[0] || mem[0] != testChar) {
245 if (buf[1] != mem[1] || mem[1] != (testChar + 3)) {
274 char buf[PAGE_SIZE] = {0};
280 int wByte = write(fd, buf, len);
304 read(fd, buf, len);
306 LOG("parent: buf[0] = %c (0x%02x)", buf[0], buf[0]);
307 LOG("parent: buf[1] = %c (0x%02x)", buf[1], buf[1]);
309 EXPECT_TRUE(buf[0] == testChar) << "ERROR: buf[0] != testChar";
310 EXPECT_TRUE(buf[1] == (testChar + 3)) << "ERROR: buf[1] != (testChar + 3)";
373 char buf[PAGE_SIZE] = {0};
379 int wByte = write(fd, buf, len);