LLNL / UnifyFS

UnifyFS: A file system for burst buffers
Other
105 stars 31 forks source link

test: fopen existing and truncate on open #760

Closed adammoody closed 1 year ago

adammoody commented 1 year ago

This adds a few test cases related to fixes in https://github.com/LLNL/UnifyFS/pull/746

1) Check that an existing file is truncated with open() in write mode and O_TRUNC. 2) Check that fopen(file, "w") succeeds on an existing file. 3) Check that fopen(file, "w") truncates an existing file to 0 bytes.

adammoody commented 1 year ago

Thanks @CamStan . You pointed me right to the fix.

CamStan commented 1 year ago

Oh good! Glad it worked!