diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2017-11-13 10:44:21 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2017-11-13 10:44:21 +0200 |
commit | 462194e9ce590d40801984d77039cde6297ae094 (patch) | |
tree | cfff57a5d28fcfb259d6c064f422c3277fff6e61 /tests/kms-test-planeposition.py | |
parent | bd3cb8887a0c2310ca1d35f4ebc11a5df6dba461 (diff) |
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 <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'tests/kms-test-planeposition.py')
-rwxr-xr-x | tests/kms-test-planeposition.py | 10 |
1 files 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() |