Closed adammoody closed 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.
open()
O_TRUNC
fopen(file, "w")
Thanks @CamStan . You pointed me right to the fix.
Oh good! Glad it worked!
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 andO_TRUNC
. 2) Check thatfopen(file, "w")
succeeds on an existing file. 3) Check thatfopen(file, "w")
truncates an existing file to 0 bytes.