From: greg@kroah.com Date: Sat, 13 Mar 2004 02:00:39 +0000 (-0800) Subject: [PATCH] add big major tests to udev-test.pl X-Git-Tag: 022~4 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d12d4e175eececfc6956e99438f7c1ddd6b85eb;p=systemd [PATCH] add big major tests to udev-test.pl --- diff --git a/test/sys/class/i2c-dev/i2c-fake1/dev b/test/sys/class/i2c-dev/i2c-fake1/dev new file mode 100644 index 00000000..ab453138 --- /dev/null +++ b/test/sys/class/i2c-dev/i2c-fake1/dev @@ -0,0 +1 @@ +4095:1 diff --git a/test/sys/class/i2c-dev/i2c-fake1/name b/test/sys/class/i2c-dev/i2c-fake1/name new file mode 100644 index 00000000..ced44c39 --- /dev/null +++ b/test/sys/class/i2c-dev/i2c-fake1/name @@ -0,0 +1 @@ +fake1 dev diff --git a/test/sys/class/i2c-dev/i2c-fake2/dev b/test/sys/class/i2c-dev/i2c-fake2/dev new file mode 100644 index 00000000..d2425b70 --- /dev/null +++ b/test/sys/class/i2c-dev/i2c-fake2/dev @@ -0,0 +1 @@ +4094:89999 diff --git a/test/sys/class/i2c-dev/i2c-fake2/name b/test/sys/class/i2c-dev/i2c-fake2/name new file mode 100644 index 00000000..b69deec2 --- /dev/null +++ b/test/sys/class/i2c-dev/i2c-fake2/name @@ -0,0 +1 @@ +fake2 dev diff --git a/test/udev-test.pl b/test/udev-test.pl index 407ecd3b..0f623be0 100644 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -552,6 +552,26 @@ EOF exp_majorminor => "89:300", conf => < "big major number test", + subsys => "i2c-dev", + devpath => "class/i2c-dev/i2c-fake1", + exp_name => "node", + exp_majorminor => "4095:1", + conf => < "big major and big minor number test", + subsys => "i2c-dev", + devpath => "class/i2c-dev/i2c-fake2", + exp_name => "node", + exp_majorminor => "4094:89999", + conf => <