[Bug 1398] seek with size beyond end, cause grow for readonly file
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Sun Aug 7 15:26:54 UTC 2011
https://www.rtems.org/bugzilla/show_bug.cgi?id=1398
--- Comment #4 from Xiang Cui <medivhc at gmail.com> 2011-08-07 10:26:53 CDT ---
FAT and IMFS fails in fsrdwr test in fstests.
388 pos = lseek (fd, 0, SEEK_CUR);
389 rtems_test_assert (pos == total_written + 1);
390
391 status = close (fd);
392 rtems_test_assert (status == 0);
393
394 /* Check the file size
395 * Since we don't call write, the file size should not change.
396 */
397 status = stat (name01, &statbuf);
398 rtems_test_assert (statbuf.st_size == total_written);
399
400 status = truncate (name01, total_written );
401 rtems_test_assert (status == 0);
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list