From: Masatake YAMATO Date: Thu, 13 Oct 2022 06:23:26 +0000 (+0900) Subject: tests: (mkfds) introduce constants representing the limitation of the test environment X-Git-Tag: v2.39-rc1~52^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2182cd22f255d233a778cd40a60166c12935a2bf;p=thirdparty%2Futil-linux.git tests: (mkfds) introduce constants representing the limitation of the test environment Signed-off-by: Masatake YAMATO --- diff --git a/tests/helpers/test_mkfds.c b/tests/helpers/test_mkfds.c index 2e3835ea2a..e629c17d5f 100644 --- a/tests/helpers/test_mkfds.c +++ b/tests/helpers/test_mkfds.c @@ -51,6 +51,10 @@ #include "nls.h" #include "xalloc.h" +#define EXIT_ENOSYS 17 +#define EXIT_EPERM 18 +#define EXIT_ENOPROTOOPT 19 + #define _U_ __attribute__((__unused__)) static int pidfd_open(pid_t pid, unsigned int flags); diff --git a/tests/ts/lsfd/lsfd-functions.bash b/tests/ts/lsfd/lsfd-functions.bash index b57ba118f4..6af0042164 100644 --- a/tests/ts/lsfd/lsfd-functions.bash +++ b/tests/ts/lsfd/lsfd-functions.bash @@ -15,6 +15,11 @@ # GNU General Public License for more details. # +# The exit-status used in a test target. +readonly ENOSYS=17 +readonly EPERM=18 +readonly ENOPROTOOPT=19 + function lsfd_wait_for_pausing { ts_check_prog "sleep"