summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-12-22 18:05:16 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-12-22 18:09:48 +0000
commite6d52317724eaa7314f7d8e53b313f5a5676ecdf (patch)
tree74081b44ca2cd39002fbe62651668d99a19abf6d /tests
parentbc000862e8c6f05a2d960a5a300e1e1d6c8c7026 (diff)
lib/selftest: Query module parameter for error code.
"Live" selftesting of i915.ko happens during device probing which eats the error code and does not propagate it back to module loading. Workaround this by writing the error code back to the module parameter and probing it after a "successful" install. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/drm_mm.c2
-rw-r--r--tests/drv_selftest.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/drm_mm.c b/tests/drm_mm.c
index 9c49990c..2052b115 100644
--- a/tests/drm_mm.c
+++ b/tests/drm_mm.c
@@ -28,5 +28,5 @@ IGT_TEST_DESCRIPTION("Basic sanity check of DRM's range manager (struct drm_mm)"
igt_main
{
- igt_kselftests("test-drm_mm", NULL, NULL);
+ igt_kselftests("test-drm_mm", NULL, NULL, NULL);
}
diff --git a/tests/drv_selftest.c b/tests/drv_selftest.c
index 3d8ce8e0..96dd8bf1 100644
--- a/tests/drv_selftest.c
+++ b/tests/drv_selftest.c
@@ -28,6 +28,6 @@ IGT_TEST_DESCRIPTION("Basic unit tests for i915.ko");
igt_main
{
- igt_kselftests("i915", "mock_selftests=-1", "mock");
- igt_kselftests("i915", "live_selftests=-1", "live");
+ igt_kselftests("i915", "mock_selftests=-1", NULL, "mock");
+ igt_kselftests("i915", "live_selftests=-1", "live_selftests", "live");
}