summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-03-12 17:39:59 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:09 -0700
commita5e8d2b4a312b43a295e8f022dd10034b3572125 (patch)
tree08ae10a5f60e28cdcee5accf97637176d0922be8
parent7ddb6f47d70ea7a5881d1f2fa6ed856d2cbe0090 (diff)
downloadsystemd-a5e8d2b4a312b43a295e8f022dd10034b3572125.tar.gz
[PATCH] add a test for a minor over 255
-rw-r--r--test/sys/class/i2c-dev/i2c-300/dev1
-rw-r--r--test/sys/class/i2c-dev/i2c-300/name1
-rw-r--r--test/udev-test.pl10
3 files changed, 12 insertions, 0 deletions
diff --git a/test/sys/class/i2c-dev/i2c-300/dev b/test/sys/class/i2c-dev/i2c-300/dev
new file mode 100644
index 0000000000..e1ffb89f95
--- /dev/null
+++ b/test/sys/class/i2c-dev/i2c-300/dev
@@ -0,0 +1 @@
+89:300
diff --git a/test/sys/class/i2c-dev/i2c-300/name b/test/sys/class/i2c-dev/i2c-300/name
new file mode 100644
index 0000000000..9357009701
--- /dev/null
+++ b/test/sys/class/i2c-dev/i2c-300/name
@@ -0,0 +1 @@
+foo dev
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 300d822d92..407ecd3b5b 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -544,6 +544,16 @@ EOF
BUS="scsi", KERNEL="sda", NAME="node"
EOF
},
+ {
+ desc => "big minor number test",
+ subsys => "i2c-dev",
+ devpath => "class/i2c-dev/i2c-300",
+ exp_name => "node",
+ exp_majorminor => "89:300",
+ conf => <<EOF
+KERNEL="i2c-300", NAME="node"
+EOF
+ },
);
# set env