diff mbox

[i-g-t] tests/gem_{ctx, exec}_create: Adjust timeout values for BAT

Message ID 1463763766-27941-1-git-send-email-marius.c.vlad@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Marius Vlad May 20, 2016, 5:02 p.m. UTC
Tune down from 20s to 2s. Add the old timeout values under extended tests.

Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
---
 tests/gem_ctx_create.c  | 2 ++
 tests/gem_exec_create.c | 2 ++
 2 files changed, 4 insertions(+)

Comments

Chris Wilson May 20, 2016, 7:53 p.m. UTC | #1
On Fri, May 20, 2016 at 08:02:46PM +0300, Marius Vlad wrote:
> Tune down from 20s to 2s. Add the old timeout values under extended tests.

Does it fail with the new timeout? If not, increase it.

This test should be a fail on current kernels.
-Chris
Marius Vlad May 27, 2016, 10:27 a.m. UTC | #2
On Fri, May 20, 2016 at 08:53:12PM +0100, Chris Wilson wrote:
> On Fri, May 20, 2016 at 08:02:46PM +0300, Marius Vlad wrote:
> > Tune down from 20s to 2s. Add the old timeout values under extended tests.
> 
> Does it fail with the new timeout? If not, increase it.
> 
> This test should be a fail on current kernels.
Ran it on two different platforms for 2 minutes and no fails.
> -Chris
> 
> -- 
> Chris Wilson, Intel Open Source Technology Centre
diff mbox

Patch

diff --git a/tests/gem_ctx_create.c b/tests/gem_ctx_create.c
index 0bdd408..ef3bdda 100644
--- a/tests/gem_ctx_create.c
+++ b/tests/gem_ctx_create.c
@@ -181,6 +181,8 @@  igt_main
 	}
 
 	igt_subtest("basic-files")
+		files(fd, 2, 1);
+	igt_subtest("extended-files")
 		files(fd, 20, 1);
 	igt_subtest("forked-files")
 		files(fd, 20, ncpus);
diff --git a/tests/gem_exec_create.c b/tests/gem_exec_create.c
index 33fc85c..f77c206 100644
--- a/tests/gem_exec_create.c
+++ b/tests/gem_exec_create.c
@@ -154,6 +154,8 @@  igt_main
 	igt_fork_hang_detector(device);
 
 	igt_subtest("basic")
+		all(device, 0, 2, 1);
+	igt_subtest("extended")
 		all(device, 0, 20, 1);
 	igt_subtest("forked")
 		all(device, 0, 20, ncpus);