summaryrefslogtreecommitdiff
path: root/tests/debugfs_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/debugfs_test.c')
-rw-r--r--tests/debugfs_test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/debugfs_test.c b/tests/debugfs_test.c
index 287ffeb3..122f7dc8 100644
--- a/tests/debugfs_test.c
+++ b/tests/debugfs_test.c
@@ -50,8 +50,11 @@ static void read_and_discard_sysfs_entries(int path_fd, bool is_crc)
read_and_discard_sysfs_entries(sub_fd, !strcmp(dirent->d_name, "crc"));
close(sub_fd);
} else {
- char *buf = igt_sysfs_get(path_fd, dirent->d_name);
+ char *buf;
+ igt_set_timeout(5, "reading sysfs entry");
+ buf = igt_sysfs_get(path_fd, dirent->d_name);
+ igt_reset_timeout();
/*
* /crtc-XX/crc/data may fail with -EIO if the CRTC
* is not active.