Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DirAccess interface to file_access_memory #99851

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

demolke
Copy link
Contributor

@demolke demolke commented Nov 29, 2024

Having memory backed res:// folder is useful for hermetic tests that need to mutate contents of the resource directory.

For example in #98909 we want the res:// folder not to contain a texture imported on previous run to always test the same code path.

It requires changes to core/os/os.h so that we can re-initialize the file/dir handlers during test setup.

@demolke demolke requested review from a team as code owners November 29, 2024 21:44
@demolke demolke force-pushed the memdiraccess branch 2 times, most recently from 1fa1c9c to 0e09b80 Compare November 29, 2024 22:34
@demolke
Copy link
Contributor Author

demolke commented Nov 29, 2024

This will be failing sanitizers until #99847

@demolke
Copy link
Contributor Author

demolke commented Dec 3, 2024

#99847 is now merged, so the CI succeeds

@demolke demolke requested a review from a team as a code owner December 17, 2024 06:47
Having memory backed res:// folder is useful for hermetic tests that need to mutate contents of the resource directory.

For example in godotengine#98909 we want the res:// folder not to contain a texture imported on previous run to always test the same code path.

It requires changes to core/os/os.h so that we can re-initialize the file/dir handlers during test setup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants