upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/gameinput_test.cpp
diff options
context:
space:
mode:
authorRomain PINSOLLE <romain.pins@gmail.com>2026-11-24 10:53:58 +0100
committerRomain PINSOLLE <romain.pins@gmail.com>2026-11-24 10:53:58 +0100
commitb68ce6cccd696bad8150e18c5a8a4a2e5ea6cd73 (patch)
treefd386ec3edf303e8b9f1dcedb84365e58c00eb1a /runtime/test/gameinput_test.cpp
parent21625bca8c675c62f9dbffc318ce6a59d57faf31 (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/test/gameinput_test.cpp')
0 files changed, 0 insertions, 0 deletions