mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-19 13:56:23 +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:
parent
6ee3337b28
commit
34424138bc
1
lib/tests/.gitignore
vendored
1
lib/tests/.gitignore
vendored
@ -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)
|
||||||
|
8
lib/tests/igt_timeout.c
Normal file
8
lib/tests/igt_timeout.c
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#include "igt_core.h"
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
igt_simple_main
|
||||||
|
{
|
||||||
|
igt_set_timeout(1);
|
||||||
|
sleep(5);
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user