selftests/nolibc: chroot_exe: remove procfs dependency
authorZhangjin Wu <falcon@tinylab.org>
Fri, 7 Jul 2023 18:45:08 +0000 (02:45 +0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Aug 2023 02:38:02 +0000 (04:38 +0200)
commit135b622e4855981cad487aead7e6992358a0d25c
tree86f2b5003496d95788888d703066616fcd7e9e85
parentf576d3c075dbc469480e737a97916be3c8f1a723
selftests/nolibc: chroot_exe: remove procfs dependency

Since argv0 also works for CONFIG_PROC_FS=n, let's use it instead of
'/proc/self/exe'.

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