aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_realize.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_realize.c b/test/test_realize.c
index 50eba46..cf2cde6 100644
--- a/test/test_realize.c
+++ b/test/test_realize.c
@@ -65,9 +65,13 @@ main(int argc, char** argv)
test.view = puglNewView(test.world);
puglSetClassName(test.world, "PuglTest");
puglSetWindowTitle(test.view, "Pugl Realize Test");
- puglSetBackend(test.view, puglStubBackend());
puglSetHandle(test.view, &test);
puglSetEventFunc(test.view, onEvent);
+ assert(puglRealize(test.view) == PUGL_BAD_BACKEND);
+
+ puglSetBackend(test.view, puglStubBackend());
+ assert(puglRealize(test.view) == PUGL_BAD_CONFIGURATION);
+
puglSetSizeHint(test.view, PUGL_DEFAULT_SIZE, 512, 512);
// Create initially invisible window