mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 22:02:57 +00:00
lib/tests: add a test for igt_set_timeout
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
@@ -5,3 +5,4 @@ igt_no_exit
|
|||||||
igt_no_exit_list_only
|
igt_no_exit_list_only
|
||||||
igt_no_subtest
|
igt_no_subtest
|
||||||
igt_simulation
|
igt_simulation
|
||||||
|
igt_timeout
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ check_PROGRAMS = \
|
|||||||
igt_list_only \
|
igt_list_only \
|
||||||
igt_no_subtest \
|
igt_no_subtest \
|
||||||
igt_simulation \
|
igt_simulation \
|
||||||
|
igt_timeout \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
check_SCRIPTS = \
|
check_SCRIPTS = \
|
||||||
@@ -22,4 +23,5 @@ XFAIL_TESTS = \
|
|||||||
igt_no_exit \
|
igt_no_exit \
|
||||||
igt_no_exit_list_only \
|
igt_no_exit_list_only \
|
||||||
igt_no_subtest \
|
igt_no_subtest \
|
||||||
|
igt_timeout \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
#include "igt_core.h"
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
igt_simple_main
|
||||||
|
{
|
||||||
|
igt_set_timeout(1);
|
||||||
|
sleep(5);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user