sendfile06_64 failure on i386
Hi!
Quoted 14 lines
this testcase is currently failing on i386:
sendfile06_641 TFAIL : sendfile06.c:90: sendfile(2) failed to return expected value, expected: 17592186044442, got: 26It's using
SAFE_FSTATfrom libltp, which is not compiled with
-D_FILE_OFFSET_BITS=64 -DOFF_T=__off64_t as the testcase.The testcase can pass if I turn
SAFE_FSTATinto plain fstat:(quoted diff) +3
-1- SAFE_FSTAT(cleanup, fd, &sb); + TEST(fstat(fd, &sb)); + if (TEST_RETURN != 0) + tst_brkm(TBROK | TTERRNO, cleanup, "fstat");
Quoted 2 lines
but I'm wondering if we can fix this at global level, so users of
safe_macrosdon't have to worry about this.
I guess that turning the safe_fstat() into static inline function and putting it into the safe_macros.h header should fix the issue. That way the fstat would use struct stat64 corectly if corresponding macros are defined.
Anything else would need more ifdefs and would be fairly tricky to maintain.
Signature · 11 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list