summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/kms-test-planeposition.py10
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()