[igt-dev] [PATCH i-g-t] debugfs_test: i915_emon_status is scheduled for removal

Chris Wilson chris at chris-wilson.co.uk
Wed Aug 7 18:18:31 UTC 2019


When we remove the debugfs fail, the test simply fails rather than
skips. Kill the test as without the debugfs, it is defunct.

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Andi Shyti <andi.shyti at intel.com>
---
 tests/debugfs_test.c | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/tests/debugfs_test.c b/tests/debugfs_test.c
index 6a87d90af..6d1757c50 100644
--- a/tests/debugfs_test.c
+++ b/tests/debugfs_test.c
@@ -167,27 +167,6 @@ igt_main
 	igt_subtest_group
 		kms_tests(fd, debugfs);
 
-	igt_subtest("emon_crash") {
-		int i;
-		/*
-		 * This check if we can crash the kernel with
-		 * segmentation-fault by reading
-		 * /sys/kernel/debug/dri/0/i915_emon_status too quickly
-		 */
-		for (i = 0; i < 1000; i++) {
-			char *buf = igt_sysfs_get(debugfs,
-						  "i915_emon_status");
-
-			igt_skip_on_f(!buf && !i, "i915_emon_status could not be read\n");
-
-			igt_assert(buf);
-			free(buf);
-		}
-
-		/* If we got here, we haven't crashed */
-		igt_success();
-	}
-
 	igt_fixture {
 		close(debugfs);
 		close(fd);
-- 
2.23.0.rc1



More information about the igt-dev mailing list