Skip to contentSkip to conversation

lib: Fix some doc warnings

PATCH New Daniel Vetter 1 participant 2 messages Mar 19, 2016 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 lib: Fix some doc warnings

---
 lib/igt_core.c | 2 ++
 lib/igt_kms.c  | 5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)
lib/igt_core.c +2 -0
index 947a9ca37690..1f9be7d0688e 100644
@@ -1435,6 +1435,8 @@ void igt_waitchildren(void)
 
 /**
  * igt_waitchildren_timeout:
+ * @seconds: timeout in seconds to wait
+ * @reasons: debug string explaining what timedout
  *
  * Wait for all children forked with igt_fork, for a maximum of @seconds.
  *
lib/igt_kms.c +3 -2
index f9a7bb0d6bc5..73c065a31040 100644
@@ -1020,11 +1020,12 @@ void kmstest_unset_all_crtcs(int drm_fd, drmModeResPtr resources)
 }
 
 /**
- * kmstest_get_crtc_idx: get the CRTC index based on its ID
+ * kmstest_get_crtc_idx:
  * @res: the libdrm resources
  * @crtc_id: the CRTC id
  *
- * This is useful since a few places of libdrm deal with CRTC masks.
+ * Get the CRTC index based on its ID. This is useful since a few places of
+ * libdrm deal with CRTC masks.
  */
 int kmstest_get_crtc_idx(drmModeRes *res, uint32_t crtc_id)
 {
Signature · 6 lines
2.7.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

PATCH 2/2 lib/tests: More igt_subtest_group checks

... for some cases discussed with Chris on irc. We seem to get them all right.

---
 lib/tests/igt_subtest_group.c | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
lib/tests/igt_subtest_group.c +20 -0
index 2b17955c5ac8..c2364d799f36 100644
@@ -28,6 +28,7 @@
 igt_main
 {
 	bool t1 = false;
+	int t2 = 0;
 
 	igt_subtest_group {
 		igt_fixture {
@@ -59,5 +60,24 @@ igt_main
 		}
 	}
 
+	igt_subtest_group {
+		igt_fixture {
+			assert(t2 == 0);
+			t2 = 1;
+		}
+
+		igt_subtest("run-again") {
+			assert(t2 == 1);
+			t2 = 2;
+		}
+
+		igt_fixture {
+			assert(t2 == 2);
+			t2 = 3;
+
+		}
+	}
+
 	assert(t1);
+	assert(t2 == 3);
 }
Signature · 6 lines
2.7.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx