From 0b45b0746f45deea11670a8b2c949776bbbef55c Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Thu, 6 Aug 2015 13:12:46 -0700 Subject: [PATCH] tests/gem_ctx_param_basic: fix invalid params Use -1 as the invalid param since we've added more since this test was created, causing expected EINVAL failures to return an unexpected error code. Signed-off-by: Jesse Barnes --- tests/gem_ctx_param_basic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gem_ctx_param_basic.c b/tests/gem_ctx_param_basic.c index b44b37cf..5ff3b13f 100644 --- a/tests/gem_ctx_param_basic.c +++ b/tests/gem_ctx_param_basic.c @@ -98,7 +98,7 @@ igt_main ctx_param.size = 0; } - ctx_param.param = LOCAL_CONTEXT_PARAM_BAN_PERIOD + 1; + ctx_param.param = -1; igt_subtest("invalid-param-get") { ctx_param.context = ctx;