summaryrefslogtreecommitdiff
path: root/tests/mode/modetest.c
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2008-02-05 15:18:05 +0000
committerAlan Hourihane <alanh@tungstengraphics.com>2008-02-05 15:18:05 +0000
commit936e32b08c05c9658cc51cd8fe118e0342733a79 (patch)
tree47b6e2efbf046a182b6854e0296b31237b546432 /tests/mode/modetest.c
parent5997e10ca75ac87fd54b3bc0035938e1a9ad7929 (diff)
make modefb/modedemo match each others test output.
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;
}