commit | 4200e260d266fd0c176e71fbd720d0bab04b02db | [log] [tgz] |
---|---|---|
author | Daniel Micay <danielmicay@gmail.com> | Tue Nov 03 05:14:08 2015 -0500 |
committer | Elliott Hughes <enh@google.com> | Fri Nov 06 13:14:43 2015 -0800 |
tree | b2c934fc4e2f546504cc02fdccd5f83fd60c6d37 | |
parent | ef5e647891f1a0aefeab4a87e9225e47087c6301 [diff] [blame] |
fix the mremap signature The mremap definition was incorrect (unsigned long instead of int) and it was missing the optional new_address parameter. Change-Id: Ib9d0675aaa098c21617cedc9b2b8cf267be3aec4
diff --git a/tests/sys_mman_test.cpp b/tests/sys_mman_test.cpp index b0e40fd..dffb646 100644 --- a/tests/sys_mman_test.cpp +++ b/tests/sys_mman_test.cpp
@@ -215,3 +215,7 @@ ASSERT_EQ(0, munmap(map, pagesize)); } + +TEST(sys_mman, mremap) { + ASSERT_EQ(MAP_FAILED, mremap(nullptr, 0, 0, 0)); +}