diff options
-rw-r--r-- | test/sys/class/i2c-dev/i2c-300/dev | 1 | ||||
-rw-r--r-- | test/sys/class/i2c-dev/i2c-300/name | 1 | ||||
-rw-r--r-- | test/udev-test.pl | 10 |
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 |