]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (lsfd::mkfds-multiplexing,refactor) use ENOSYS connstant
authorMasatake YAMATO <yamato@redhat.com>
Tue, 16 Jun 2026 17:39:21 +0000 (02:39 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Tue, 16 Jun 2026 17:39:21 +0000 (02:39 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/ts/lsfd/mkfds-multiplexing

index 79f4d55309c7d19e761b7f39cd3c9d5be28963ce..67a1434c7beece4c9ec8d828f8f2894307cc484a 100755 (executable)
@@ -19,6 +19,7 @@ TS_DESC="XMODE.m for classical system calls for multiplexing"
 
 . "$TS_TOPDIR"/functions.sh
 ts_init "$*"
+. "$TS_SELF/lsfd-functions.bash"
 
 ts_check_test_command "$TS_CMD_LSFD"
 ts_check_test_command "$TS_HELPER_MKFDS"
@@ -89,7 +90,7 @@ for multiplexer in pselect6 select poll ppoll; do
     fi
 
     wait "$MKFDS_CPID"
-    if [ $? -eq 23 ]; then
+    if [ $? -eq "$ENOSYS" ]; then
        ts_skip "the $multiplexer syscall is not available (ENOSYS)"
     fi
     ts_finalize_subtest