Commit f6aa80ca authored by Thomas Wood's avatar Thomas Wood

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: default avatarThomas Wood <>
parent 34424138
......@@ -1521,7 +1521,9 @@ static void test_nonblocking_read(int in)
igt_require(ret != -1);
ret = read(fd, buffer, sizeof(buffer));
igt_assert_eq(ret, -1);
igt_assert_eq(errno, EAGAIN);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment