diff options
| author | Romain PINSOLLE <romain.pins@gmail.com> | 2026-11-24 10:53:58 +0100 |
|---|---|---|
| committer | Romain PINSOLLE <romain.pins@gmail.com> | 2026-11-24 10:53:58 +0100 |
| commit | b68ce6cccd696bad8150e18c5a8a4a2e5ea6cd73 (patch) | |
| tree | fd386ec3edf303e8b9f1dcedb84365e58c00eb1a /runtime/xma_decoder/tests | |
| parent | 21625bca8c675c62f9dbffc318ce6a59d57faf31 (diff) | |
hw_oracle: remove the temp workdir when the constructor fails (HW-ORACLE-WORKDIR-LEAK)
DrmOracle.__init__ and Oracle.__init__ create a temporary workdir and then
can raise Unavailable (a skipped probe, exit 77). close() is never reached
for an object whose constructor raised, so every skipped run left a
leonida-hw-oracle-* directory in the temp dir.
Remove the directory when the constructor made it and then fails. A
caller-supplied workdir is left alone. tests/test_hw_oracle_workdir_leak.py
covers the early, late and caller-supplied cases with no GPU or libdrm.
Diffstat (limited to 'runtime/xma_decoder/tests')
0 files changed, 0 insertions, 0 deletions