[PATCH i-g-t] igt/debugfs_test: Skip dummy reads for sysfs pipe crc data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Doing this tends to takes forever.

Signed-off-by: Abdiel Janulgue <abdiel.janulgue@xxxxxxxxxxxxxxx>
---
 tests/debugfs_test.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/debugfs_test.c b/tests/debugfs_test.c
index 3f0eaae..3d973d9 100644
--- a/tests/debugfs_test.c
+++ b/tests/debugfs_test.c
@@ -40,7 +40,8 @@ static void read_and_discard_sysfs_entries(int path_fd)
 
 	while ((dirent = readdir(dir))) {
 		if (!strcmp(dirent->d_name, ".") ||
-		    !strcmp(dirent->d_name, ".."))
+		    !strcmp(dirent->d_name, "..") ||
+		    !strcmp(dirent->d_name, "crc"))
 			continue;
 		if (dirent->d_type == DT_DIR) {
 			int sub_fd = -1;
-- 
2.7.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux