Searched refs:STRING_MSG (Results 1 – 1 of 1) sorted by relevance
/bionic/tests/ |
D | sys_mman_test.cpp | 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() [all …]
|