[pango/line-breaking-fixes: 11/12] testrandom: Skip more bad cases
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/line-breaking-fixes: 11/12] testrandom: Skip more bad cases
- Date: Sun, 14 Nov 2021 20:33:35 +0000 (UTC)
commit 137aa66fcc07f73cb4d320146cedc74c0ee9bba9
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Nov 12 21:03:35 2021 -0500
testrandom: Skip more bad cases
tests/testrandom.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/tests/testrandom.c b/tests/testrandom.c
index a7716b1b..9f132b92 100644
--- a/tests/testrandom.c
+++ b/tests/testrandom.c
@@ -140,7 +140,8 @@ test_wrap_char (gconstpointer data)
for (i = 1; i < G_N_ELEMENTS (sizes); i++)
{
- if (sizes[i].set_width < min.width)
+ if (sizes[i-1].set_width < min.width ||
+ sizes[i].set_width < min.width)
continue;
g_assert_cmpint (sizes[i-1].set_width, <=, sizes[i].set_width);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]