selftests/nolibc: prepare: create /dev/zero
authorZhangjin Wu <falcon@tinylab.org>
Fri, 7 Jul 2023 15:02:16 +0000 (23:02 +0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Aug 2023 02:38:02 +0000 (04:38 +0200)
commit82e339c23036d0abefa7ef68d8fb134b0a7f14f4
tree55ecde442853015e7b1f383cb84c81267164a08f
parent938b5b983330a55af8e31eabf329db7dbc7a5038
selftests/nolibc: prepare: create /dev/zero

/dev/zero is commonly used to allocate anonymous memory, it is a very
good file for tests, let's prepare it.

Suggested-by: Willy Tarreau <w@1wt.eu>
Link: https://lore.kernel.org/lkml/20230702193306.GK16233@1wt.eu/
Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
tools/testing/selftests/nolibc/nolibc-test.c