Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ppisar
Copy link
Contributor

@ppisar ppisar commented Oct 7, 2025

t/core_rwops.t used to create a file in the current working directory and then test that SDL::RWOps can open it, seek in it and read it. I.e. the test did not perform any write operation, yet setting up the test required writing.

This unnecessary write prevented from running the tests from a read-only location.

This patch precreates the test file so that no write operation is needed when running the test.

t/core_rwops.t used to create a file in the current working directory
and then test that SDL::RWOps can open it, seek in it and read it.
I.e. the test did not perform any write operation, yet setting up the
test required writing.

This unnecessary write prevented from running the tests from
a read-only location.

This patch precreates the test file so that no write operation is
needed when running the test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant