----- Original Message ----- > From: chru...@suse.cz > To: "Jan Stancek" <jstan...@redhat.com> > Cc: ltp-list@lists.sourceforge.net > Sent: Monday, 25 August, 2014 4:07:50 PM > Subject: Re: [LTP] [PATCH] safe_macros: turn functions with off_t parameter > into static inline > > Hi! > > > And the testcase that fails in SAFE_SETRLIMIT() is truncate03_64 after > > > the patch that fixes the EFBIG limit. > > > > > > So unless you are already working on it I will prepare and push a patch > > > that moves rlimit related safe macros to the header as well. > > > > I'm not - it did not fail when I tested the patch for some reason. > > Fixed and pushed, please test.
Looks good on x86_64 with -m32. Without patch: # ./truncate03_64 truncate03 1 TBROK : safe_macros.c:518: truncate03.c:166: setrlimit(1,0xffb71220) failed: errno=EINVAL(22): Invalid argument truncate03 2 TBROK : safe_macros.c:518: Remaining cases broken With patch: # ./truncate03_64 truncate03 1 TPASS : truncate() failed as expected: TEST_ERRNO=EACCES(13): Permission denied truncate03 2 TPASS : truncate() failed as expected: TEST_ERRNO=ENOTDIR(20): Not a directory truncate03 3 TPASS : truncate() failed as expected: TEST_ERRNO=EFAULT(14): Bad address truncate03 4 TPASS : truncate() failed as expected: TEST_ERRNO=EFAULT(14): Bad address truncate03 5 TPASS : truncate() failed as expected: TEST_ERRNO=ENAMETOOLONG(36): File name too long truncate03 6 TPASS : truncate() failed as expected: TEST_ERRNO=ENOENT(2): No such file or directory truncate03 7 TPASS : truncate() failed as expected: TEST_ERRNO=EISDIR(21): Is a directory truncate03 8 TPASS : truncate() failed as expected: TEST_ERRNO=EFBIG(27): File too large truncate03 9 TPASS : truncate() failed as expected: TEST_ERRNO=ELOOP(40): Too many levels of symbolic links I'm also re-running across all arches on RHEL5.10/6/7, I should have result by tomorrow. Regards, Jan ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list