summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-09-03 19:26:20 +0300
committerAlon Levy <alevy@redhat.com>2012-09-03 19:26:44 +0300
commitf567f6b4cd696277fb48d7778d1aa0626f312d72 (patch)
tree5be050fd78475b4cb27f27bcae681e7bb4cb6498 /server
parenteab78033a61001b01cfe79e6d9e49bdb45ff89fe (diff)
downloadspice-f567f6b4cd696277fb48d7778d1aa0626f312d72.tar.gz
spice-f567f6b4cd696277fb48d7778d1aa0626f312d72.tar.xz
spice-f567f6b4cd696277fb48d7778d1aa0626f312d72.zip
server/tests/test_display_base: fix update_area abort
Don't do zero area update_areas, server now aborts on those. This tester is not supposed to test those aborts.
Diffstat (limited to 'server')
-rw-r--r--server/tests/test_display_base.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/tests/test_display_base.c b/server/tests/test_display_base.c
index 3426ff44..710e3a8f 100644
--- a/server/tests/test_display_base.c
+++ b/server/tests/test_display_base.c
@@ -491,7 +491,9 @@ static void produce_command(Test *test)
.top = 0,
.bottom = (test->target_surface == 0 ? test_height : SURF_HEIGHT)
};
- qxl_worker->update_area(qxl_worker, test->target_surface, &rect, NULL, 0, 1);
+ if (rect.right > 0 && rect.bottom > 0) {
+ qxl_worker->update_area(qxl_worker, test->target_surface, &rect, NULL, 0, 1);
+ }
break;
}