selftests/nolibc: add munmap_bad test case
authorZhangjin Wu <falcon@tinylab.org>
Fri, 7 Jul 2023 15:07:13 +0000 (23:07 +0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Aug 2023 02:38:02 +0000 (04:38 +0200)
commitba3d0892be0e2d5a7d144c5519920130639524fc
tree5ef0d49d412b907deb8e25a2102c0f2582177707
parentd4a3b2b99810ef398c352585edff2c23b17ef86d
selftests/nolibc: add munmap_bad test case

The addr argument of munmap() must be a multiple of the page size,
passing invalid (void *)1 addr expects failure with -EINVAL.

Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
tools/testing/selftests/nolibc/nolibc-test.c