selftests/nolibc: add mmap_bad test case
authorZhangjin Wu <falcon@tinylab.org>
Fri, 7 Jul 2023 15:05:49 +0000 (23:05 +0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Aug 2023 02:38:02 +0000 (04:38 +0200)
commitd4a3b2b99810ef398c352585edff2c23b17ef86d
tree3797d50293391c98f15df8a15bfdb266cadcb023
parentf193ecbff0effc06190036d92ec2fa582d9e6824
selftests/nolibc: add mmap_bad test case

The length argument of mmap() must be greater than 0, passing a zero
length argument 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