aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-05-16 21:17:55 +0200
committerDavid Robillard <d@drobilla.net>2020-05-16 21:17:55 +0200
commit8fffa8f1f596b9553b291d4caa9f0c4de6f311b2 (patch)
treee6aa89caf79b44423870b2c1622b620e949b20f0 /test
parent6e42e48ad75af5ceaaabba95bc56a2a1fc0737db (diff)
downloadpugl-8fffa8f1f596b9553b291d4caa9f0c4de6f311b2.tar.gz
pugl-8fffa8f1f596b9553b291d4caa9f0c4de6f311b2.tar.bz2
pugl-8fffa8f1f596b9553b291d4caa9f0c4de6f311b2.zip
Make show/hide test tolerant to multiple exposures
This happens on MacOS.
Diffstat (limited to 'test')
-rw-r--r--test/test_show_hide.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_show_hide.c b/test/test_show_hide.c
index cc2c972..a0341c1 100644
--- a/test/test_show_hide.c
+++ b/test/test_show_hide.c
@@ -71,7 +71,7 @@ onEvent(PuglView* view, const PuglEvent* event)
test->state = MAPPED;
break;
case PUGL_EXPOSE:
- assert(test->state == MAPPED);
+ assert(test->state == MAPPED || test->state == EXPOSED);
test->state = EXPOSED;
break;
case PUGL_UNMAP: