chiark / gitweb /
[PATCH] make perm and major:minor test errors be reported properly.
[elogind.git] / test / udev-test.pl
index fc682b528a1795b2c7a6c8b780dae887c94dfcbc..e5407364bb6750b9ba9393103875a0f1d2b01a53 100644 (file)
@@ -596,6 +596,7 @@ sub run_test {
                        if ($wrong == 1) {
                                printf "expected permissions are: %i:%i:%#o\n", $1, $2, oct($3);
                                printf "created permissions are : %i:%i:%#o\n", $uid, $gid, $mode & 07777;
+                               $error++;
                        }
                }
 
@@ -614,6 +615,7 @@ sub run_test {
                        if ($wrong == 1) {
                                printf "expected major:minor is: %i:%i\n", $1, $2;
                                printf "created major:minor is : %i:%i\n", $major, $minor;
+                               $error++;
                        }
                }