From 462194e9ce590d40801984d77039cde6297ae094 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 13 Nov 2017 10:44:21 +0200 Subject: tests: planeposition: Accept off-screen planes The DU driver now accepts off-screen planes (but obviously don't display them). Update the test accordingly. Signed-off-by: Laurent Pinchart --- tests/kms-test-planeposition.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/kms-test-planeposition.py b/tests/kms-test-planeposition.py index 2a9935d..2618b9a 100755 --- a/tests/kms-test-planeposition.py +++ b/tests/kms-test-planeposition.py @@ -83,8 +83,8 @@ class PlanePositionTest(kmstest.KMSTest): self.logger.log("Moved overlay plane to %d,%d" % offset) time.sleep(3) - # Try to move the plane completely off-screen. The device is expected to - # reject this. + # Try to move the plane completely off-screen. The device is expected + # to accept this and not to show the plane on the screen. offsets = ((mode.hdisplay, 50), (50, mode.vdisplay), (-mode.hdisplay, 50), (50, -mode.vdisplay)) for offset in offsets: @@ -94,11 +94,11 @@ class PlanePositionTest(kmstest.KMSTest): destination = kmstest.Rect(offset[0], offset[1], width, height) ret = self.atomic_plane_set(planes[1], crtc, source, destination, fb, sync=True) - if ret >= 0: - self.fail("atomic plane set with invalid offset %d,%d accepted" % offset) + if ret < 0: + self.fail("atomic plane set with offset %d,%d" % offset) return - self.logger.log("Failed to Move overlay plane to %d,%d as expected" % offset) + self.logger.log("Moved overlay plane to %d,%d" % offset) self.success() -- cgit v1.2.3