aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-05-06 17:07:44 -0400
committerDavid Robillard <d@drobilla.net>2021-05-06 17:14:12 -0400
commit47d59e2881c6172eef9561fd2e28ad2437107434 (patch)
treec931f04b619eb63871e35ef69afca2519b28fcbc /test
parent2245365a5727badc3348d3c0d2620bb5e8f568c5 (diff)
downloadpugl-47d59e2881c6172eef9561fd2e28ad2437107434.tar.gz
pugl-47d59e2881c6172eef9561fd2e28ad2437107434.tar.bz2
pugl-47d59e2881c6172eef9561fd2e28ad2437107434.zip
Set distinct window titles for tests
This makes things a little more clear when something goes wrong, for example if a test hangs.
Diffstat (limited to 'test')
-rw-r--r--test/test_cairo.c1
-rw-r--r--test/test_clipboard.c1
-rw-r--r--test/test_gl_hints.c1
-rw-r--r--test/test_realize.c1
-rw-r--r--test/test_redisplay.c1
-rw-r--r--test/test_show_hide.c1
-rw-r--r--test/test_size.c2
-rw-r--r--test/test_stub_hints.c1
-rw-r--r--test/test_timer.c1
-rw-r--r--test/test_update.c1
10 files changed, 10 insertions, 1 deletions
diff --git a/test/test_cairo.c b/test/test_cairo.c
index 704a31d..077b4c3 100644
--- a/test/test_cairo.c
+++ b/test/test_cairo.c
@@ -74,6 +74,7 @@ main(int argc, char** argv)
// Set up and show view
puglSetClassName(test.world, "Pugl Test");
+ puglSetWindowTitle(test.view, "Pugl Cairo Test");
puglSetHandle(test.view, &test);
puglSetBackend(test.view, puglCairoBackend());
puglSetEventFunc(test.view, onEvent);
diff --git a/test/test_clipboard.c b/test/test_clipboard.c
index a458d00..fc08afd 100644
--- a/test/test_clipboard.c
+++ b/test/test_clipboard.c
@@ -66,6 +66,7 @@ main(int argc, char** argv)
// Set up views
for (unsigned i = 0u; i < 2; ++i) {
test.views[i] = puglNewView(test.world);
+ puglSetWindowTitle(test.world, "Pugl Clipboard Test");
puglSetBackend(test.views[i], puglStubBackend());
puglSetHandle(test.views[i], &test);
puglSetEventFunc(test.views[i], onEvent);
diff --git a/test/test_gl_hints.c b/test/test_gl_hints.c
index 3be3651..d99a57f 100644
--- a/test/test_gl_hints.c
+++ b/test/test_gl_hints.c
@@ -44,6 +44,7 @@ main(void)
// Set up view
puglSetClassName(world, "Pugl Test");
+ puglSetWindowTitle(view, "Pugl OpenGL Hints Test");
puglSetBackend(view, puglGlBackend());
puglSetEventFunc(view, onEvent);
puglSetDefaultSize(view, 512, 512);
diff --git a/test/test_realize.c b/test/test_realize.c
index 3c4e09a..bdd4f8a 100644
--- a/test/test_realize.c
+++ b/test/test_realize.c
@@ -77,6 +77,7 @@ main(int argc, char** argv)
// Set up view
test.view = puglNewView(test.world);
puglSetClassName(test.world, "Pugl Test");
+ puglSetWindowTitle(test.view, "Pugl Realize Test");
puglSetBackend(test.view, puglStubBackend());
puglSetHandle(test.view, &test);
puglSetEventFunc(test.view, onEvent);
diff --git a/test/test_redisplay.c b/test/test_redisplay.c
index 989aad7..ceb5394 100644
--- a/test/test_redisplay.c
+++ b/test/test_redisplay.c
@@ -108,6 +108,7 @@ main(int argc, char** argv)
// Set up view
test.view = puglNewView(test.world);
puglSetClassName(test.world, "Pugl Test");
+ puglSetWindowTitle(test.view, "Pugl Redisplay Test");
puglSetBackend(test.view, puglStubBackend());
puglSetHandle(test.view, &test);
puglSetEventFunc(test.view, onEvent);
diff --git a/test/test_show_hide.c b/test/test_show_hide.c
index 584448c..2294709 100644
--- a/test/test_show_hide.c
+++ b/test/test_show_hide.c
@@ -112,6 +112,7 @@ main(int argc, char** argv)
// Set up view
test.view = puglNewView(test.world);
puglSetClassName(test.world, "Pugl Test");
+ puglSetWindowTitle(test.view, "Pugl Show/Hide Test");
puglSetBackend(test.view, puglStubBackend());
puglSetHandle(test.view, &test);
puglSetEventFunc(test.view, onEvent);
diff --git a/test/test_size.c b/test/test_size.c
index c811672..4f6c029 100644
--- a/test/test_size.c
+++ b/test/test_size.c
@@ -95,7 +95,7 @@ main(int argc, char** argv)
// Set up view with size bounds and an aspect ratio
test.view = puglNewView(test.world);
puglSetClassName(test.world, "Pugl Test");
- puglSetWindowTitle(test.view, "Pugl View Test");
+ puglSetWindowTitle(test.view, "Pugl Size Test");
puglSetBackend(test.view, puglStubBackend());
puglSetHandle(test.view, &test);
puglSetEventFunc(test.view, onEvent);
diff --git a/test/test_stub_hints.c b/test/test_stub_hints.c
index 75c8052..7720f0d 100644
--- a/test/test_stub_hints.c
+++ b/test/test_stub_hints.c
@@ -44,6 +44,7 @@ main(void)
// Set up view
puglSetClassName(world, "Pugl Test");
+ puglSetWindowTitle(view, "Pugl Stub Hints Test");
puglSetBackend(view, puglStubBackend());
puglSetEventFunc(view, onEvent);
puglSetDefaultSize(view, 512, 512);
diff --git a/test/test_timer.c b/test/test_timer.c
index 63f1843..02b8a80 100644
--- a/test/test_timer.c
+++ b/test/test_timer.c
@@ -102,6 +102,7 @@ main(int argc, char** argv)
// Set up view
test.view = puglNewView(test.world);
puglSetClassName(test.world, "Pugl Test");
+ puglSetWindowTitle(test.view, "Pugl Timer Test");
puglSetBackend(test.view, puglStubBackend());
puglSetHandle(test.view, &test);
puglSetEventFunc(test.view, onEvent);
diff --git a/test/test_update.c b/test/test_update.c
index e50205e..d9c02ab 100644
--- a/test/test_update.c
+++ b/test/test_update.c
@@ -98,6 +98,7 @@ main(int argc, char** argv)
// Set up view
test.view = puglNewView(test.world);
puglSetClassName(test.world, "Pugl Test");
+ puglSetWindowTitle(test.view, "Pugl Update Test");
puglSetBackend(test.view, puglStubBackend());
puglSetHandle(test.view, &test);
puglSetEventFunc(test.view, onEvent);