Home
last modified time | relevance | path

Searched refs:STRING_MSG (Results 1 – 1 of 1) sorted by relevance

/bionic/tests/
Dsys_mman_test.cpp54 #define STRING_MSG "012345678\nabcdefgh\n" macro
60 ASSERT_EQ(STR_SSIZE(STRING_MSG), write(tf.fd, STRING_MSG, sizeof(STRING_MSG))); in TEST()
62 void* map = mmap(nullptr, sizeof(STRING_MSG), PROT_READ, MAP_SHARED, tf.fd, 0); in TEST()
66 ASSERT_STREQ(STRING_MSG, data); in TEST()
68 ASSERT_EQ(0, munmap(map, sizeof(STRING_MSG))); in TEST()
77 void* map = mmap(nullptr, sizeof(STRING_MSG), PROT_WRITE, MAP_SHARED, tf.fd, 0); in TEST()
81 memcpy(map, STRING_MSG, sizeof(STRING_MSG)); in TEST()
83 ASSERT_EQ(0, munmap(map, sizeof(STRING_MSG))); in TEST()
86 char buf[sizeof(STRING_MSG)]; in TEST()
87 memset(buf, 0, sizeof(STRING_MSG)); in TEST()
[all …]