From e0f326e23f6b96f31ce9e8bbd5b5f2233e6a90ba Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 21 Feb 2026 09:35:33 +0100 Subject: 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. --- src/tests/gpu/test_effect_base.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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"); } -- cgit v1.2.3