summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2016-01-05 15:21:23 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2016-01-26 21:50:17 +0000
commit1674147a149c2165a927a5d8eb0db4eee1f6a4e3 (patch)
treebfef9204824e8bdbd8eaf24841ca023ca992d9d5
parent2ad5ea780b3cca83ae4f531ae0b4159e802ef825 (diff)
downloadlibdrm-1674147a149c2165a927a5d8eb0db4eee1f6a4e3.tar.gz
libdrm-1674147a149c2165a927a5d8eb0db4eee1f6a4e3.tar.bz2
libdrm-1674147a149c2165a927a5d8eb0db4eee1f6a4e3.zip
tests: util: Fixup util_open() parameter order
util_open() takes a device parameter, followed by a module parameter. The existing tests used the drmOpen() function, which uses a different ordering of the parameters, and the old ordering was accidentally kept during the conversion. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
-rw-r--r--tests/modetest/modetest.c2
-rw-r--r--tests/proptest/proptest.c2
-rw-r--r--tests/vbltest/vbltest.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index 22e3e81b..f665240a 100644
--- a/tests/modetest/modetest.c
+++ b/tests/modetest/modetest.c
@@ -1603,7 +1603,7 @@ int main(int argc, char **argv)
if (!args)
encoders = connectors = crtcs = planes = framebuffers = 1;
- dev.fd = util_open(module, device);
+ dev.fd = util_open(device, module);
if (dev.fd < 0)
return -1;
diff --git a/tests/proptest/proptest.c b/tests/proptest/proptest.c
index 24c63456..4bd08665 100644
--- a/tests/proptest/proptest.c
+++ b/tests/proptest/proptest.c
@@ -295,7 +295,7 @@ int main(int argc, char *argv[])
args = argc - optind;
- fd = util_open(module, device);
+ fd = util_open(device, module);
if (fd < 0)
return 1;
diff --git a/tests/vbltest/vbltest.c b/tests/vbltest/vbltest.c
index 18333212..4475b49b 100644
--- a/tests/vbltest/vbltest.c
+++ b/tests/vbltest/vbltest.c
@@ -120,7 +120,7 @@ int main(int argc, char **argv)
}
}
- fd = util_open(module, device);
+ fd = util_open(device, module);
if (fd < 0)
return 1;