lib/core: Add optional reason for timeout failure

"Timed out" isn't a terribly informative message, allow users to set
something more informative. Inspired by a request from Jesse.

Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
This commit is contained in:
Daniel Vetter
2015-08-07 19:01:23 +02:00
parent 24617ef82a
commit 370c989723
5 changed files with 17 additions and 8 deletions
+1 -1
View File
@@ -3,6 +3,6 @@
igt_simple_main
{
igt_set_timeout(1);
igt_set_timeout(1, "Testcase");
sleep(5);
}