Lines Matching refs:STRING_MSG
58 #define STRING_MSG "012345678\nabcdefgh\n" macro
64 ASSERT_EQ(STR_SSIZE(STRING_MSG), write(tf.fd, STRING_MSG, sizeof(STRING_MSG))); in TEST()
66 void* map = mmap(nullptr, sizeof(STRING_MSG), PROT_READ, MAP_SHARED, tf.fd, 0); in TEST()
70 ASSERT_STREQ(STRING_MSG, data); in TEST()
72 ASSERT_EQ(0, munmap(map, sizeof(STRING_MSG))); in TEST()
81 void* map = mmap(nullptr, sizeof(STRING_MSG), PROT_WRITE, MAP_SHARED, tf.fd, 0); in TEST()
85 memcpy(map, STRING_MSG, sizeof(STRING_MSG)); in TEST()
87 ASSERT_EQ(0, munmap(map, sizeof(STRING_MSG))); in TEST()
90 char buf[sizeof(STRING_MSG)]; in TEST()
91 memset(buf, 0, sizeof(STRING_MSG)); in TEST()
92 ASSERT_EQ(STR_SSIZE(STRING_MSG), read(tf.fd, buf, sizeof(STRING_MSG))); in TEST()
94 ASSERT_STREQ(STRING_MSG, buf); in TEST()