升级
This commit is contained in:
@@ -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) {
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user