diff options
author | Thomas Wood <thomas.wood@intel.com> | 2014-11-10 15:09:51 +0000 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2014-11-13 14:27:57 +0000 |
commit | f6aa80ca18f3dc5fe751c941fb1af6b4b44d21ef (patch) | |
tree | 51399634ecbb6c189dd178eeb3f4fe8b9402b2e2 | |
parent | 34424138bcee87dc8e3c7555f28aa2642668e2e8 (diff) |
tests/kms_flip: add a timeout for the nonblocking-read test
kms_flip/nonblocking-read will block indefinitely if it fails, so
introduce a timeout to indicate test failure.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85718
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
-rw-r--r-- | tests/kms_flip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/kms_flip.c b/tests/kms_flip.c index 612d7a9e..cce9594d 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -1521,7 +1521,9 @@ static void test_nonblocking_read(int in) } igt_require(ret != -1); + igt_set_timeout(5); ret = read(fd, buffer, sizeof(buffer)); + igt_set_timeout(0); igt_assert_eq(ret, -1); igt_assert_eq(errno, EAGAIN); |