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

Unit tests fail when run by more than one user on the same machine #100

Closed
amadio opened this issue Sep 19, 2022 · 3 comments
Closed

Unit tests fail when run by more than one user on the same machine #100

amadio opened this issue Sep 19, 2022 · 3 comments

Comments

@amadio
Copy link
Contributor

amadio commented Sep 19, 2022

Davix's unit tests create a file in /tmp/davix-tests-tmp-file. However, the test doesn't remove this file, so if you run the tests as another user on the same machine (i.e. as root to install davix system-wide), the file will already be there and creation of the file will fail for the second user (with permission denied, as it already exists), causing the test to get a segfault when dereferencing the FILE pointer here, as fopen returns NULL. Debugged this last Friday with @joaopblopes.

@mpatrascoiu
Copy link
Contributor

Thanks for reporting this. Something else on the list following #99.

@joaopblopes
Copy link
Contributor

Fixed with commits f2afd3ba and 23a591d5.

@joaopblopes
Copy link
Contributor

Closing issue.

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

No branches or pull requests

3 participants