summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanusz Krzysztofik <janusz.krzysztofik@linux.intel.com>2020-07-15 15:25:58 +0200
committerJanusz Krzysztofik <janusz.krzysztofik@linux.intel.com>2020-09-14 20:45:36 +0200
commitf75e88bb583c787251ceb347dfbbdc9e2aace18c (patch)
treed6b307a356bf12b36a8f5e230f09ddfedadb6900
parent90662af602dfc187de1d41f4b24410100b1251e7 (diff)
tests/core_hotunplug: Assert successful device filter application
Return value of igt_device_filter_add() representing a number of successfully installed device filters is now ignored. Fail if not 1. Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com> Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com>
-rw-r--r--tests/core_hotunplug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/core_hotunplug.c b/tests/core_hotunplug.c
index fc239324..2f703109 100644
--- a/tests/core_hotunplug.c
+++ b/tests/core_hotunplug.c
@@ -193,7 +193,7 @@ static void set_filter_from_device(int fd)
igt_assert(realpath(path, dst));
igt_device_filter_free_all();
- igt_device_filter_add(filter);
+ igt_assert_eq(igt_device_filter_add(filter), 1);
}
/* Subtests */