From: Suzanne H. <Suz...@st...> - 2002-05-29 20:33:04
|
I have a system on which ftruncate02 is failing because the test suite = assumes that a truncate whose length is larger than the original file = will increase the size of the file. However, according to the man page = on my linux system, the behavior in this case is unspecified: DESCRIPTION Truncate causes the file named by path or referenced by fd to = be truncated to at most length bytes in size. If the file previously was larger = than this size, the extra data is lost. If the file previously was shorter, it is = unspecified whether the file is left unchanged or is extended. In the latter case = the extended part reads as zero bytes. With ftruncate, the file must be open for = writing. Would appear to me that the test should not be testing this case, since = the action has no expected result. Thanks, Suzanne |