This commit is contained in:
2026-08-12 09:45:18 +08:00
parent 9331b4cbf6
commit 0910b73ea4
22 changed files with 439 additions and 98 deletions
@@ -38,6 +38,12 @@ TEST(scene_base_test, wait_for_render_propagates_background_render_failure) {
scene.attach_renderable(renderable);
scene.render();
EXPECT_THROW(scene.wait_for_render(), std::runtime_error);
const auto execution = scene.task_execution_snapshot();
EXPECT_EQ(execution.state, Task_Execution_State::Failed);
EXPECT_EQ(execution.graph_node_count, 3u);
EXPECT_EQ(execution.failed_count, 1u);
EXPECT_EQ(execution.running_count, 0u);
EXPECT_GT(execution.duration_ns, 0u);
}
TEST(scene_base_test, scene_destruction_does_not_throw_after_background_render_failure) {
{