summaryrefslogtreecommitdiff
path: root/tests/debugfs_test.c
diff options
context:
space:
mode:
authorAbdiel Janulgue <abdiel.janulgue@linux.intel.com>2017-07-03 13:19:33 +0300
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2017-07-04 16:31:54 +0300
commit9a6ed6c6398c2218d65392593fa43852810515cc (patch)
treea861180f17d33ce15a1a39e9c20a968e6da17364 /tests/debugfs_test.c
parentdf66d04b80f6665d27125fce7d8992ce72473d75 (diff)
igt/debugfs_test: Skip dummy reads for crtc-n/crc/data
When descending thru debugfs directory. Doing this tends to takes forever. CRC pipe read tests for this are already covered under kms_pipe_crc_basic. v2: Be more verbose that the check is meant for the crtc control data Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com> Cc: arkadiusz.hiler@intel.com Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'tests/debugfs_test.c')
-rw-r--r--tests/debugfs_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/debugfs_test.c b/tests/debugfs_test.c
index 287ffeb3..fb1735bf 100644
--- a/tests/debugfs_test.c
+++ b/tests/debugfs_test.c
@@ -44,6 +44,8 @@ static void read_and_discard_sysfs_entries(int path_fd, bool is_crc)
continue;
if (dirent->d_type == DT_DIR) {
int sub_fd = -1;
+ if (strstr(dirent->d_name, "crtc-"))
+ continue;
igt_assert((sub_fd =
openat(path_fd, dirent->d_name, O_RDONLY |
O_DIRECTORY)) > 0);