On 18 July 2012 17:20, Eric Anholt <span dir="ltr"><<a href="mailto:eric@anholt.net" target="_blank">eric@anholt.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
We've got a bunch of instances of this happening intermittently during<br>
runs with gnome-shell. Because our tests are not generally able to<br>
handle resizes, they would show up as spurious failures that are hard<br>
to reproduce. Instead, provide a diagnostic message and just report<br>
SKIP.<br></blockquote><div><br>I think detecting spurious window resizes is a fantastic idea. Can we report WARN instead of SKIP? I'm worried that SKIP will hide problems a little too well. For example, if for some reason a certain test receives a spurious resize event *every* time it is run, it will skip every time and it will blend in with all the other skips.<br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
---<br>
tests/util/piglit-framework-glut.c | 8 ++++++++<br>
1 file changed, 8 insertions(+)<br>
<br>
diff --git a/tests/util/piglit-framework-glut.c b/tests/util/piglit-framework-glut.c<br>
index bd6fbb7..1487edb 100644<br>
--- a/tests/util/piglit-framework-glut.c<br>
+++ b/tests/util/piglit-framework-glut.c<br>
@@ -71,6 +71,14 @@ display(void)<br>
static void<br>
reshape(int w, int h)<br>
{<br>
+ if (piglit_automatic &&<br>
+ (w != piglit_width ||<br>
+ h != piglit_height)) {<br>
+ printf("Got spurious window resize in automatic run "<br>
+ "(%d,%d to %d,%d)\n", piglit_width, piglit_height, w, h);<br>
+ piglit_report_result(PIGLIT_SKIP);<br>
+ }<br>
+<br>
piglit_width = w;<br>
piglit_height = h;<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
1.7.10.4<br>
<br>
_______________________________________________<br>
Piglit mailing list<br>
<a href="mailto:Piglit@lists.freedesktop.org">Piglit@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/piglit" target="_blank">http://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</font></span></blockquote></div><br>