summaryrefslogtreecommitdiff
path: root/test/render-copyarea-mask.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-11-18 12:04:29 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-11-18 12:05:15 +0000
commite99e643ed1f2856109426f791a7615ee122d7c42 (patch)
treefaf740cbb284796d24209349b22872248467d112 /test/render-copyarea-mask.c
parentb6924161108214b4e50c25f4168564ead4000430 (diff)
tests: Avoid dependence on undefined C
Right-shifting by a negative value is undefined. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'test/render-copyarea-mask.c')
-rw-r--r--test/render-copyarea-mask.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/render-copyarea-mask.c b/test/render-copyarea-mask.c
index c8bb7151..5116c161 100644
--- a/test/render-copyarea-mask.c
+++ b/test/render-copyarea-mask.c
@@ -149,13 +149,9 @@ int main(int argc, char **argv)
test_init(&test, argc, argv);
for (i = 0; i <= DEFAULT_ITERATIONS; i++) {
- int reps = 1 << i;
- int sets = 1 << (12 - i);
+ int reps = REPS(i), sets = SETS(i);
enum target t;
- if (sets < 2)
- sets = 2;
-
for (t = TARGET_FIRST; t <= TARGET_LAST; t++) {
rect_tests(&test, reps, sets, t, 0);
if (t != PIXMAP)