projects
/
platform
/
upstream
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3442413
)
tests/kms_flip: add a timeout for the nonblocking-read test
author
Thomas Wood
<thomas.wood@intel.com>
Mon, 10 Nov 2014 15:09:51 +0000
(15:09 +0000)
committer
Thomas Wood
<thomas.wood@intel.com>
Thu, 13 Nov 2014 14:27:57 +0000
(14:27 +0000)
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>
tests/kms_flip.c
patch
|
blob
|
history
diff --git
a/tests/kms_flip.c
b/tests/kms_flip.c
index
612d7a9
..
cce9594
100644
(file)
--- 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);