summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-02-11 10:34:47 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-02-11 10:34:47 +0000
commit4f5d7825dfc57a5f892f3f903cbfa36abf3c13ca (patch)
treea77ab4823b961bc76885500b47116a91a2ef0f66 /test
parent7671e5cb7b0b8c7d914b8e659d9deddad2c55bb2 (diff)
test/present: Return the correct error counter from for_each_crtc
When the xserver is fixed and we no longer block for ever inside the test, we can see that the test itself falsely reports failure! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'test')
-rw-r--r--test/present-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/present-test.c b/test/present-test.c
index e90ef477..6f6d6a88 100644
--- a/test/present-test.c
+++ b/test/present-test.c
@@ -434,7 +434,7 @@ static int for_each_crtc(Display *dpy,
free(original_crtc);
XRRFreeScreenResources(res);
- return j;
+ return err;
}
struct test_crtc {