Skip to contentSkip to conversation

tests/gem_exec_reuse: Adds cleanup at the end of test.

PATCH In review Antonio Argenziano 3 participants 4 messages Aug 28, 2017 – Aug 29, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/gem_exec_reuse: Adds cleanup at the end of test.

This patch introduces a fixture at the end of the test to destroy objects that have been created and stop the hang detector.

Cc Chris Wilson <[email protected]>
---
 tests/gem_exec_reuse.c | 7 +++++++
 1 file changed, 7 insertions(+)
tests/gem_exec_reuse.c +7 -0
index cdfa9783..db26e57c 100644
@@ -234,4 +234,11 @@ igt_main
 		for (n = 0; n < ncontexts; n++)
 			gem_context_destroy(no.fd, contexts[n]);
 	}
+
+	igt_fixture {
+		igt_stop_hang_detector();
+
+		gem_close(no.fd, no.batch);
+		close(no.fd);
+	}
 }
Signature · 6 lines
2.14.1

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

✓ Fi.CI.BAT: success for tests/gem_exec_reuse: Adds cleanup at the end of test.

== Series Details ==

== Series Details ==

Series: tests/gem_exec_reuse: Adds cleanup at the end of test.
URL : https://patchwork.freedesktop.org/series/29447/
State : success

== Summary ==

IGT patchset tested on top of latest successful build d937dd7997059bc2801095ffb0c50f646da1ab01 docs: Add user documentation about audio support

with latest DRM-Tip kernel build CI_DRM_3012
ee53909d971d drm-tip: 2017y-08m-28d-15h-03m-59s UTC integration manifest

Test kms_cursor_legacy:

        Subgroup basic-busy-flip-before-cursor-atomic:
                fail       -> PASS       (fi-snb-2600) fdo#100215 +1
        Subgroup basic-flip-after-cursor-varying-size:
                fail       -> PASS       (fi-hsw-4770) fdo#102402 +1

fdo#100215 https://bugs.freedesktop.org/show_bug.cgi?id=100215
fdo#102402 https://bugs.freedesktop.org/show_bug.cgi?id=102402

fi-bdw-5557u     total:279  pass:268  dwarn:0   dfail:0   fail:0   skip:11  time:457s
fi-blb-e6850     total:279  pass:224  dwarn:1   dfail:0   fail:0   skip:54  time:363s
fi-bsw-n3050     total:279  pass:243  dwarn:0   dfail:0   fail:0   skip:36  time:555s
fi-bwr-2160      total:279  pass:184  dwarn:0   dfail:0   fail:0   skip:95  time:252s
fi-bxt-j4205     total:279  pass:260  dwarn:0   dfail:0   fail:0   skip:19  time:520s
fi-byt-j1900     total:279  pass:254  dwarn:1   dfail:0   fail:0   skip:24  time:526s
fi-byt-n2820     total:279  pass:250  dwarn:1   dfail:0   fail:0   skip:28  time:521s
fi-elk-e7500     total:279  pass:230  dwarn:0   dfail:0   fail:0   skip:49  time:444s
fi-glk-2a        total:279  pass:260  dwarn:0   dfail:0   fail:0   skip:19  time:611s
fi-hsw-4770      total:279  pass:263  dwarn:0   dfail:0   fail:0   skip:16  time:447s
fi-hsw-4770r     total:279  pass:263  dwarn:0   dfail:0   fail:0   skip:16  time:423s
fi-ilk-650       total:279  pass:229  dwarn:0   dfail:0   fail:0   skip:50  time:429s
fi-ivb-3520m     total:279  pass:261  dwarn:0   dfail:0   fail:0   skip:18  time:510s
fi-ivb-3770      total:279  pass:261  dwarn:0   dfail:0   fail:0   skip:18  time:477s
fi-kbl-7500u     total:279  pass:261  dwarn:0   dfail:0   fail:0   skip:18  time:479s
fi-kbl-7560u     total:279  pass:269  dwarn:0   dfail:0   fail:0   skip:10  time:595s
fi-kbl-r         total:279  pass:261  dwarn:0   dfail:0   fail:0   skip:18  time:597s
fi-pnv-d510      total:279  pass:223  dwarn:1   dfail:0   fail:0   skip:55  time:519s
fi-skl-6260u     total:279  pass:269  dwarn:0   dfail:0   fail:0   skip:10  time:473s
fi-skl-6700k     total:279  pass:261  dwarn:0   dfail:0   fail:0   skip:18  time:478s
fi-skl-6770hq    total:279  pass:269  dwarn:0   dfail:0   fail:0   skip:10  time:485s
fi-skl-gvtdvm    total:279  pass:266  dwarn:0   dfail:0   fail:0   skip:13  time:437s
fi-skl-x1585l    total:279  pass:268  dwarn:0   dfail:0   fail:0   skip:11  time:480s
fi-snb-2520m     total:279  pass:251  dwarn:0   dfail:0   fail:0   skip:28  time:548s
fi-snb-2600      total:279  pass:250  dwarn:0   dfail:0   fail:0   skip:29  time:404s

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_114/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw

✓ Fi.CI.IGT: success for tests/gem_exec_reuse: Adds cleanup at the end of test.

In reply to Antonio Argenziano
== Series Details ==

== Series Details ==

Series: tests/gem_exec_reuse: Adds cleanup at the end of test.
URL : https://patchwork.freedesktop.org/series/29447/
State : success

== Summary ==

Test kms_flip:

        Subgroup plain-flip-ts-check:
                fail       -> PASS       (shard-hsw)

shard-hsw total:2230 pass:1231 dwarn:0 dfail:0 fail:17 skip:982 time:9703s

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_114/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw
In reply to Antonio Argenziano

Quoting Antonio Argenziano (2017-08-29 00:18:34)

Quoted 2 lines

This patch introduces a fixture at the end of the test to destroy objects that have been created and stop the hang detector.

We shouldn't have to. Resources are cleaned up by the kernel, and hang detector is using the fork helper which is meant to make sure all is well upon exit.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx