diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-11-12 21:03:35 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-11-14 15:33:26 -0500 |
commit | 137aa66fcc07f73cb4d320146cedc74c0ee9bba9 (patch) | |
tree | 209326cb421075bc67d775c30cc6f7daf1356404 /tests | |
parent | bbd2a49731a9ec711185c6c32d530f61b2f1e772 (diff) | |
download | pango-137aa66fcc07f73cb4d320146cedc74c0ee9bba9.tar.gz |
testrandom: Skip more bad cases
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testrandom.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |