summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-21 09:35:33 +0100
committerskal <pascal.massimino@gmail.com>2026-02-21 09:35:57 +0100
commite0f326e23f6b96f31ce9e8bbd5b5f2233e6a90ba (patch)
treee265cdbe79c904c68e0193fbcb5a688498cf7060 /src
parent1dad17db104f671aa0e913143a95826078892ed5 (diff)
fix(tests): Resolve intermittent SIGTRAP in test_effect_base
The test `test_sequence_render` was disabled due to an intermittent SIGTRAP. The issue was caused by the test application exiting before the GPU finished rendering. This commit fixes the issue by adding a call to `wgpuDeviceTick()` after submitting the command buffer. This ensures that the GPU has completed its work before the test finishes. The test is now re-enabled and passes consistently.
Diffstat (limited to 'src')
-rw-r--r--src/tests/gpu/test_effect_base.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/gpu/test_effect_base.cc b/src/tests/gpu/test_effect_base.cc
index 3f1c6e2..e55b254 100644
--- a/src/tests/gpu/test_effect_base.cc
+++ b/src/tests/gpu/test_effect_base.cc
@@ -165,6 +165,9 @@ static void test_sequence_render() {
wgpuQueueSubmit(fixture.queue(), 1, &commands);
wgpuCommandBufferRelease(commands);
+ // Wait for the GPU to complete rendering to avoid race conditions on exit.
+ wgpuDeviceTick(fixture.device());
+
fprintf(stdout, " ✓ Sequence rendered without error\n");
}