]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (mkfds) introduce constants representing the limitation of the test environment
authorMasatake YAMATO <yamato@redhat.com>
Thu, 13 Oct 2022 06:23:26 +0000 (15:23 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Sun, 26 Feb 2023 08:26:47 +0000 (17:26 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/helpers/test_mkfds.c
tests/ts/lsfd/lsfd-functions.bash

index 2e3835ea2abddba10a3dd4b856cb85a5e9d85a37..e629c17d5f868bd7ac69f651731e15992b680bcd 100644 (file)
 #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);
index b57ba118f408a5212ccbf2828b84d7c1662d8023..6af004216418a0eb61e277bd009bda3789ea3177 100644 (file)
 # 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"