summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-03-12 17:27:44 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:09 -0700
commit7ddb6f47d70ea7a5881d1f2fa6ed856d2cbe0090 (patch)
treef14695803b9085570b36704a934816881be530d6 /test
parentb9a88fe756d20ea13b8f6da87c784d8aac9c4538 (diff)
[PATCH] udev-test.pl: print out major:minor and perm test "ok" if is ok.
Diffstat (limited to 'test')
-rw-r--r--test/udev-test.pl11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index e5407364bb..300d822d92 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -539,10 +539,9 @@ EOF
subsys => "block",
devpath => "block/sda",
exp_name => "node",
- perms => "5000::0444",
exp_majorminor => "8:0",
conf => <<EOF
-BUS="scsi", KERNEL="sda", NAME="node", OWNER="5000", MODE="0444"
+BUS="scsi", KERNEL="sda", NAME="node"
EOF
},
);
@@ -593,7 +592,9 @@ sub run_test {
if ($3 ne "") {
if (($mode & 07777) != oct($3)) { $wrong = 1; };
}
- if ($wrong == 1) {
+ if ($wrong == 0) {
+ print "permissions: ok ";
+ } else {
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++;
@@ -612,7 +613,9 @@ sub run_test {
if ($2 ne "") {
if ($minor != $2) { $wrong = 1; };
}
- if ($wrong == 1) {
+ if ($wrong == 0) {
+ print "major:minor: ok ";
+ } else {
printf "expected major:minor is: %i:%i\n", $1, $2;
printf "created major:minor is : %i:%i\n", $major, $minor;
$error++;