]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (lsfd) fix typoes in an error name
authorMasatake YAMATO <yamato@redhat.com>
Sat, 16 Mar 2024 15:38:17 +0000 (00:38 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Fri, 5 Apr 2024 09:26:43 +0000 (18:26 +0900)
tests/helpers/test_mkfds.c
tests/ts/lsfd/lsfd-functions.bash
tests/ts/lsfd/mkfds-ping

index 28ed3bffcb46b4995c7b41964e6a4c31a010be87..bbce228fd51d792714fce46f2dc5c67c4bd26441 100644 (file)
@@ -69,7 +69,7 @@
 #define EXIT_EPERM  18
 #define EXIT_ENOPROTOOPT 19
 #define EXIT_EPROTONOSUPPORT 20
-#define EXIT_EACCESS 21
+#define EXIT_EACCES 21
 
 #define _U_ __attribute__((__unused__))
 
@@ -2097,7 +2097,7 @@ static void *make_ping_common(const struct factory *factory, struct fdesc fdescs
 
        sd = socket(family, SOCK_DGRAM, protocol);
        if (sd < 0)
-               err((errno == EACCES? EXIT_EACCESS: EXIT_FAILURE),
+               err((errno == EACCES? EXIT_EACCES: EXIT_FAILURE),
                    "failed to make an icmp socket");
 
        if (sd != fdescs[0].fd) {
@@ -2117,7 +2117,7 @@ static void *make_ping_common(const struct factory *factory, struct fdesc fdescs
                        int e = errno;
                        close(sd);
                        errno = e;
-                       err((errno == EACCES? EXIT_EACCESS: EXIT_FAILURE),
+                       err((errno == EACCES? EXIT_EACCES: EXIT_FAILURE),
                            "failed in bind(2)");
                }
        }
index 43c02ad7045fe0ac5d0f6d8eb13b55bcf85cf7e8..36c0583c5e312e50df31945c15712e7b553136e4 100644 (file)
@@ -19,7 +19,7 @@
 readonly EPERM=18
 readonly ENOPROTOOPT=19
 readonly EPROTONOSUPPORT=20
-readonly EACCESS=21
+readonly EACCES=21
 
 function lsfd_wait_for_pausing {
        ts_check_prog "sleep"
index 21777426ae836687d78766b0d465d9f575d6b0b0..2baafdeb4e7b1c5f29c9dadc06b3523424d0236a 100755 (executable)
@@ -90,7 +90,7 @@ ERRMSG=
 for i in 0 1; do
     ERRMSG=$("$TS_HELPER_MKFDS"  -c -q "${FACTORY[$i]}" 3 id=$ID 2>&1)
     ERR="$?"
-    if [[ "$ERR" == "$EACCESS" ]]; then
+    if [[ "$ERR" == "$EACCES" ]]; then
        case "$ERRMSG" in
            *bind*)
                MSG="making ${TYPE[$i]} socket with specifying id is not allowed (blocked by SELinux?)"