chiark / gitweb /
[PATCH] make perm and major:minor test errors be reported properly.
authorgreg@kroah.com <greg@kroah.com>
Sat, 13 Mar 2004 01:19:50 +0000 (17:19 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:35:09 +0000 (21:35 -0700)
test/udev-test.pl

index fc682b5..e540736 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;
                        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;
                        if ($wrong == 1) {
                                printf "expected major:minor is: %i:%i\n", $1, $2;
                                printf "created major:minor is : %i:%i\n", $major, $minor;
+                               $error++;
                        }
                }
 
                        }
                }