summaryrefslogtreecommitdiff
path: root/tests/flip_test.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-10-02 17:22:09 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-10-02 17:22:09 +0200
commitd619a672df97f34cfbbebe89ed8cbe15827182a1 (patch)
tree242c38024903dc83639155715c79f6e523165bee /tests/flip_test.c
parent66fe119afd1cec2fdd47cec77523b4af2526df47 (diff)
tests/flip_test: also test pannning with dummy load
Needs a bit more relaxed select timeout to work (which is not required when testing dummy_load vs. dpms, since the dpms forces the sync, not the select timeout).
Diffstat (limited to 'tests/flip_test.c')
-rw-r--r--tests/flip_test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/flip_test.c b/tests/flip_test.c
index 57e4a6b..7f4e880 100644
--- a/tests/flip_test.c
+++ b/tests/flip_test.c
@@ -391,6 +391,10 @@ static void flip_mode(struct test_output *o, int crtc, int duration)
struct timeval now, timeout = { .tv_sec = 3, .tv_usec = 0 };
fd_set fds;
+ /* make timeout lax with the dummy load */
+ if (o->flags & TEST_WITH_DUMMY_LOAD)
+ timeout.tv_sec *= 10;
+
FD_ZERO(&fds);
FD_SET(0, &fds);
FD_SET(drm_fd, &fds);
@@ -497,6 +501,7 @@ int main(int argc, char **argv)
{ 30, TEST_DPMS, "flip vs dpms" },
{ 30, TEST_DPMS | TEST_WITH_DUMMY_LOAD, "delayed flip vs. dpms" },
{ 5, TEST_PAN, "flip vs panning" },
+ { 30, TEST_PAN | TEST_WITH_DUMMY_LOAD, "delayed flip vs panning" },
};
int i;