cern-fts / davix

High-performance file management over WebDAV / HTTP
GNU Lesser General Public License v2.1
83 stars 34 forks source link

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

Closed amadio closed 1 year ago

amadio commented 2 years ago

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 commented 1 year ago

Thanks for reporting this. Something else on the list following https://github.com/cern-fts/davix/pull/99.

joaopblopes commented 1 year ago

Fixed with commits f2afd3ba and 23a591d5.

joaopblopes commented 1 year ago

Closing issue.