selftests/nolibc: support two errnos with EXPECT_SYSER2()
authorZhangjin Wu <falcon@tinylab.org>
Sat, 3 Jun 2023 08:13:40 +0000 (16:13 +0800)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 9 Jun 2023 18:46:10 +0000 (11:46 -0700)
commit75d75a7b2803173c376b01e1f992f6364a5fdb33
tree67ccd25b5df0c7ebaed7e28e7aae102aac2f08c3
parentf62ec079d0899331085ff3537848e55cc316d751
selftests/nolibc: support two errnos with EXPECT_SYSER2()

Some functions may be implemented with different syscalls in different
platforms, these syscalls may set different errnos for the same
arguments, let's support such cases.

Suggested-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/linux-riscv/20230528113325.GJ1956@1wt.eu/
Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
Reviewed-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/nolibc/nolibc-test.c