aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_utils.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-05-08 13:17:52 -0400
committerDavid Robillard <d@drobilla.net>2021-05-08 13:17:52 -0400
commit0380b427cdf712e46befccaffe85d30f09e851dc (patch)
tree36fd600603e660d3a4563af5e8602bdf57386693 /test/test_utils.h
parentefb3eb4a6b57b67b0103211380fe5924a05f3440 (diff)
downloadpugl-0380b427cdf712e46befccaffe85d30f09e851dc.tar.gz
pugl-0380b427cdf712e46befccaffe85d30f09e851dc.tar.bz2
pugl-0380b427cdf712e46befccaffe85d30f09e851dc.zip
Print create/destroy and map/unmap events in tests by default
Diffstat (limited to 'test/test_utils.h')
-rw-r--r--test/test_utils.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/test_utils.h b/test/test_utils.h
index 868f5b4..2f80cbf 100644
--- a/test/test_utils.h
+++ b/test/test_utils.h
@@ -115,6 +115,14 @@ printEvent(const PuglEvent* event, const char* prefix, const bool verbose)
switch (event->type) {
case PUGL_NOTHING:
return 0;
+ case PUGL_CREATE:
+ return fprintf(stderr, "%sCreate\n", prefix);
+ case PUGL_DESTROY:
+ return fprintf(stderr, "%sDestroy\n", prefix);
+ case PUGL_MAP:
+ return fprintf(stderr, "%sMap\n", prefix);
+ case PUGL_UNMAP:
+ return fprintf(stderr, "%sUnmap\n", prefix);
case PUGL_KEY_PRESS:
return PRINT("%sKey press code %3u key U+%04X\n",
prefix,
@@ -182,14 +190,6 @@ printEvent(const PuglEvent* event, const char* prefix, const bool verbose)
if (verbose) {
switch (event->type) {
- case PUGL_CREATE:
- return fprintf(stderr, "%sCreate\n", prefix);
- case PUGL_DESTROY:
- return fprintf(stderr, "%sDestroy\n", prefix);
- case PUGL_MAP:
- return fprintf(stderr, "%sMap\n", prefix);
- case PUGL_UNMAP:
- return fprintf(stderr, "%sUnmap\n", prefix);
case PUGL_UPDATE:
return fprintf(stderr, "%sUpdate\n", prefix);
case PUGL_CONFIGURE: