[LTP] [PATCH] Added test for mmap() with MAP_SHARED_VALIDATE.
Petr Vorel
pvorel@suse.cz
Tue Mar 28 10:11:33 CEST 2023
...
> > FYI we have various helpers in include/tst_test_macros.h, e.g. TST_EXP_FAIL()
> > for expected failures where return is just classical syscalls result
> > (0 for pass, -1 for error) or TST_EXP_FD() for file descriptors.
> > But these cannot be used here, because mmap returns pointer to void.
> > We might want to write helpers which use TEST_VOID() instead of TEST(),
> > after tests for mmap() are rewritten to new API, they could use it.
> Sounds good, but we can do this in later refactoring work on mmap tests.
> Now I'm slightly OK with not using TEST_ macros for everything:).
Sure (it will not block this effort, definitely for separate effort with low
priority).
Kind regards,
Petr
More information about the ltp
mailing list