You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: module_paths_parity find_matches_c_for_any_path can list the system temp dir and flake #1917
rust/obs-core/tests/obs_core/module_paths_parity.rs, find_matches_c_for_any_path (Tier 3, added by #1894).
Class
Flaky test.
How it is reached
The proptest builds random module search paths under a temp tree. Some generated paths contain .. segments, which can climb out of the tree into the system temp directory itself. The Rust shim and the C oracle then each list that directory at slightly different moments. Any other process creating or removing an entry in between makes the two results differ, and the test fails although both sides are correct. It passes reliably with a private, quiet TMPDIR.
Proposed fix and failing test
Keep every generated path inside the test's own tree: generate .. only where it cannot climb above the tree root, or resolve against a private root. The test's coverage of .. handling stays. The failure needs another process writing to the temp directory; the fix is shown by a constrained generator plus a check that no generated path resolves outside the tree.
Activity
rdoupe commentedon Oct 23, 2026
Claiming: #1917 (our test from #1894).
test: Keep the module path proptests inside their own tree (obs-rust#…
obs-c-oracle: Compare the module locale files port with the original C
libobs: Port the module locale files to obs-core (obs-rust#1926)