aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-01-09 12:11:33 -0500
committerDavid Robillard <d@drobilla.net>2023-01-09 12:11:33 -0500
commit4e81c178ed8665c2f37fd6f3a35cd1a31598bc8d (patch)
tree575ffc3b79424a44f5acd76ba3a156a1c49e15b3 /test
parent87af385d3846d83a6e45f92c391265548a225964 (diff)
downloadpugl-4e81c178ed8665c2f37fd6f3a35cd1a31598bc8d.tar.gz
pugl-4e81c178ed8665c2f37fd6f3a35cd1a31598bc8d.tar.bz2
pugl-4e81c178ed8665c2f37fd6f3a35cd1a31598bc8d.zip
Raise test windows initially
This seems to make thing a bit more reliable, and matches what was happening before the addition of more precise show commands.
Diffstat (limited to 'test')
-rw-r--r--test/test_cairo.c2
-rw-r--r--test/test_gl.c2
-rw-r--r--test/test_local_copy_paste.c2
-rw-r--r--test/test_redisplay.c2
-rw-r--r--test/test_remote_copy_paste.c4
-rw-r--r--test/test_show_hide.c2
-rw-r--r--test/test_size.c2
-rw-r--r--test/test_stub.c2
-rw-r--r--test/test_update.c2
-rw-r--r--test/test_view.c2
-rw-r--r--test/test_vulkan.c2
11 files changed, 12 insertions, 12 deletions
diff --git a/test/test_cairo.c b/test/test_cairo.c
index e2d0089..70f0f11 100644
--- a/test/test_cairo.c
+++ b/test/test_cairo.c
@@ -66,7 +66,7 @@ main(int argc, char** argv)
puglSetBackend(test.view, puglCairoBackend());
puglSetEventFunc(test.view, onEvent);
puglSetSizeHint(test.view, PUGL_DEFAULT_SIZE, 512, 512);
- puglShow(test.view, PUGL_SHOW_PASSIVE);
+ puglShow(test.view, PUGL_SHOW_RAISE);
// Drive event loop until the view gets exposed
while (!test.exposed) {
diff --git a/test/test_gl.c b/test/test_gl.c
index bf9b02a..6b28619 100644
--- a/test/test_gl.c
+++ b/test/test_gl.c
@@ -85,7 +85,7 @@ main(int argc, char** argv)
puglSetBackend(test.view, puglGlBackend());
puglSetEventFunc(test.view, onEvent);
puglSetSizeHint(test.view, PUGL_DEFAULT_SIZE, 512, 512);
- puglShow(test.view, PUGL_SHOW_PASSIVE);
+ puglShow(test.view, PUGL_SHOW_RAISE);
// Enter OpenGL context as if setting things up
puglEnterContext(test.view);
diff --git a/test/test_local_copy_paste.c b/test/test_local_copy_paste.c
index 14614ab..4a42652 100644
--- a/test/test_local_copy_paste.c
+++ b/test/test_local_copy_paste.c
@@ -136,7 +136,7 @@ main(int argc, char** argv)
// Create and show window
assert(!puglRealize(app.view));
- assert(!puglShow(app.view, PUGL_SHOW_PASSIVE));
+ assert(!puglShow(app.view, PUGL_SHOW_RAISE));
// Run until the test is finished
while (app.state != FINISHED) {
diff --git a/test/test_redisplay.c b/test/test_redisplay.c
index 7a98720..0b5e5f0 100644
--- a/test/test_redisplay.c
+++ b/test/test_redisplay.c
@@ -117,7 +117,7 @@ main(int argc, char** argv)
// Create and show window
assert(!puglRealize(test.view));
- assert(!puglShow(test.view, PUGL_SHOW_PASSIVE));
+ assert(!puglShow(test.view, PUGL_SHOW_RAISE));
while (test.state != EXPOSED) {
assert(!puglUpdate(test.world, timeout));
}
diff --git a/test/test_remote_copy_paste.c b/test/test_remote_copy_paste.c
index 0abcb73..e1cb0c9 100644
--- a/test/test_remote_copy_paste.c
+++ b/test/test_remote_copy_paste.c
@@ -161,8 +161,8 @@ main(int argc, char** argv)
puglSetPosition(app.pasterView, 512, 512);
// Create and show both views
- assert(!puglShow(app.copierView, PUGL_SHOW_PASSIVE));
- assert(!puglShow(app.pasterView, PUGL_SHOW_PASSIVE));
+ assert(!puglShow(app.copierView, PUGL_SHOW_RAISE));
+ assert(!puglShow(app.pasterView, PUGL_SHOW_RAISE));
// Run until the test is finished
while (app.state != FINISHED) {
diff --git a/test/test_show_hide.c b/test/test_show_hide.c
index 4418da3..7b410f4 100644
--- a/test/test_show_hide.c
+++ b/test/test_show_hide.c
@@ -86,7 +86,7 @@ showHide(PuglTest* const test)
{
// Show and hide window a couple of times
for (unsigned i = 0U; i < 2U; ++i) {
- assert(!puglShow(test->view, PUGL_SHOW_PASSIVE));
+ assert(!puglShow(test->view, PUGL_SHOW_RAISE));
while (test->state != EXPOSED) {
tick(test->world);
}
diff --git a/test/test_size.c b/test/test_size.c
index 9eaf3ca..895b4d0 100644
--- a/test/test_size.c
+++ b/test/test_size.c
@@ -91,7 +91,7 @@ main(int argc, char** argv)
// Create and show window
assert(!puglRealize(test.view));
- assert(!puglShow(test.view, PUGL_SHOW_PASSIVE));
+ assert(!puglShow(test.view, PUGL_SHOW_RAISE));
while (test.state < CONFIGURED) {
assert(!puglUpdate(test.world, -1.0));
}
diff --git a/test/test_stub.c b/test/test_stub.c
index 06abeb4..26affbe 100644
--- a/test/test_stub.c
+++ b/test/test_stub.c
@@ -52,7 +52,7 @@ main(int argc, char** argv)
puglSetBackend(test.view, puglStubBackend());
puglSetEventFunc(test.view, onEvent);
puglSetSizeHint(test.view, PUGL_DEFAULT_SIZE, 512, 512);
- puglShow(test.view, PUGL_SHOW_PASSIVE);
+ puglShow(test.view, PUGL_SHOW_RAISE);
// Drive event loop until the view gets exposed
while (!test.exposed) {
diff --git a/test/test_update.c b/test/test_update.c
index ff58ed2..26abd51 100644
--- a/test/test_update.c
+++ b/test/test_update.c
@@ -93,7 +93,7 @@ main(int argc, char** argv)
// Create and show window
assert(!puglRealize(test.view));
- assert(!puglShow(test.view, PUGL_SHOW_PASSIVE));
+ assert(!puglShow(test.view, PUGL_SHOW_RAISE));
// Tick until an expose happens
while (test.state < EXPOSED1) {
diff --git a/test/test_view.c b/test/test_view.c
index 6b3624c..ad51794 100644
--- a/test/test_view.c
+++ b/test/test_view.c
@@ -75,7 +75,7 @@ main(int argc, char** argv)
// Create and show window
assert(!puglRealize(test.view));
- assert(!puglShow(test.view, PUGL_SHOW_PASSIVE));
+ assert(!puglShow(test.view, PUGL_SHOW_RAISE));
while (test.state < CONFIGURED) {
assert(!puglUpdate(test.world, -1.0));
}
diff --git a/test/test_vulkan.c b/test/test_vulkan.c
index ae940a2..44eabf0 100644
--- a/test/test_vulkan.c
+++ b/test/test_vulkan.c
@@ -186,7 +186,7 @@ main(int argc, char** argv)
assert(puglGetDeviceProcAddrFunc(loader));
// Show view and drive event loop until the view gets exposed
- puglShow(test.view, PUGL_SHOW_PASSIVE);
+ puglShow(test.view, PUGL_SHOW_RAISE);
while (!test.exposed) {
puglUpdate(test.world, -1.0);
}