Searched refs:invalid_ptr (Results 1 – 1 of 1) sorted by relevance
94 void *invalid_ptr; in ATF_TC_BODY() local162 invalid_ptr = (void*)(((uintptr_t)sbrk(0)+page) & ~(page-1)); in ATF_TC_BODY()163 printf("testing with (hopefully) invalid pointer %p\n", invalid_ptr); in ATF_TC_BODY()166 ATF_REQUIRE_ERRNO(ENOMEM, mlock(invalid_ptr, page) == -1); in ATF_TC_BODY()169 ATF_REQUIRE_ERRNO(ENOMEM, munlock(invalid_ptr, page) == -1); in ATF_TC_BODY()