summaryrefslogtreecommitdiff
path: root/tests/mode/modetest.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mode/modetest.c')
-rw-r--r--tests/mode/modetest.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/mode/modetest.c b/tests/mode/modetest.c
index eeb4b258..ab0cdc9c 100644
--- a/tests/mode/modetest.c
+++ b/tests/mode/modetest.c
@@ -347,15 +347,14 @@ int testDPMS(int fd, drmModeResPtr res)
int main(int argc, char **argv)
{
int fd;
- const char *driver = "i915"; /* hardcoded for now */
drmModeResPtr res;
printf("Starting test\n");
- fd = drmOpen(driver, NULL);
+ fd = drmOpenControl(0);
if (fd < 0) {
- printf("Failed to open the card fb\n");
+ printf("Failed to open the card fb (%d)\n",fd);
return 1;
}