Skip to contentSkip to conversation

tests/gem_close_race: Add igt_fixture block for igt_stop_hang_detector.

PATCH In review Marius Vlad 3 participants 3 messages Apr 26, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/gem_close_race: Add igt_fixture block for igt_stop_hang_detector.

igt_fork_hang_detector() was called from a igt_fixture block, while its counterpart (igt_stop_hang_detector) was called normally, causing SIGTERM to be sent when running under check target.

---
 tests/gem_close_race.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tests/gem_close_race.c +2 -1
index 54e8b89..1c97076 100644
@@ -243,5 +243,6 @@ igt_main
 	igt_subtest("gem-close-race")
 		threads(150);
 
-	igt_stop_hang_detector();
+	igt_fixture
+	    igt_stop_hang_detector();
 }
Signature · 6 lines
2.8.0.rc3

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Marius Vlad

igt_fork_hang_detector() was called from a igt_fixture block, while its counterpart (igt_stop_hang_detector) was called normally, causing SIGTERM to be sent when running under check target.

Quoted 23 lines
---
 tests/gem_close_race.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tests/gem_close_race.c +2 -1
index 54e8b89..1c97076 100644
@@ -243,5 +243,6 @@ igt_main
 	igt_subtest("gem-close-race")
 		threads(150);
 
-	igt_stop_hang_detector();
+	igt_fixture
+	    igt_stop_hang_detector();
 }
Signature · 6 lines
2.8.0.rc3

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#2 lore raw
In reply to Marius Vlad
Quoted 3 lines · Marius Vlad

igt_fork_hang_detector() was called from a igt_fixture block, while its counterpart (igt_stop_hang_detector) was called normally, causing SIGTERM to be sent when running under check target.

Probably. Or make igt_stop_hang_detector() more sensible after an earlier failure. Or both!

Quoted 1 line

From the point of view of balance, go for it!
-Chris

Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx