selftests/nolibc: condition some tests on /proc existence
authorWilly Tarreau <w@1wt.eu>
Tue, 19 Jul 2022 21:44:43 +0000 (23:44 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 31 Aug 2022 12:17:44 +0000 (05:17 -0700)
commit7172f1c6854cb424e3be3401e3df34c1c38cffc2
treee1e9f80a016e013452228a43affdbd55357ac73d
parent1a5454f625997049d886d8c3dae8e8de2a553125
selftests/nolibc: condition some tests on /proc existence

If /proc is not available (program run inside a chroot or without
sufficient permissions), it's better to disable the associated tests.
Some will be preserved like the ones which check for a failure to
create some entries there since they're still supposed to fail.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/nolibc/nolibc-test.c