Select complete source LOD explicitly and reject renderer allocation failures
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
from pathlib import Path
|
||||
import importlib
|
||||
import pytest
|
||||
|
||||
|
||||
def test_partial_or_late_native_allocation_failure_invalidates_scene(monkeypatch, tmp_path):
|
||||
monkeypatch.syspath_prepend(str(Path(__file__).parents[1] / "simulation/ai-polygon"))
|
||||
module = importlib.import_module("scene_capacity")
|
||||
log = tmp_path / "isaac.log"
|
||||
log.write_bytes(b"startup ready\n" + b"x"*65522 + b"ERROR_OUT_OF_DE")
|
||||
guard = module.RendererMemoryGuard(log)
|
||||
guard.check()
|
||||
guard.check()
|
||||
with log.open("ab") as stream:
|
||||
stream.write(b"VICE_MEMORY\napp still running\n")
|
||||
with pytest.raises(module.ScenePreparationError, match="видеопамяти"):
|
||||
guard.check()
|
||||
Reference in New Issue
Block a user