On 03/10/2023 07:41, Chaitanya S Prakash wrote:
[...]
- /* positive madvise() range test */
- ptr = mmap(NULL, MMAP_SIZE, prot, flags, -1, 0);
- ASSERT_FALSE(IS_ERR_VALUE(ptr));
- retval = madvise(ptr, MMAP_SIZE, MADV_WILLNEED);
- ASSERT_EQ(retval, 0);
The positive tests are essentially checking that the syscalls work in normal conditions. I think we could skip those, as for such standard conditions we can rely on the standard test suites (e.g. LTP). What we really want to test here is behaviour that is unique to PCuABI.
Kevin