lib: Fix some doc warnings
PATCH 1/2 lib: Fix some doc warnings
Cc Marius Vlad <[email protected]>
Signed-off-by Daniel Vetter <[email protected]>
--- lib/igt_core.c | 2 ++ lib/igt_kms.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-)
lib/igt_core.c +2 -0
@@ -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
@@ -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
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.
Signed-off-by Daniel Vetter <[email protected]>
--- lib/tests/igt_subtest_group.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
lib/tests/igt_subtest_group.c +20 -0
@@ -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