Hi everyone.
I was running LTP in a SLES9 and I've found the following error:
posix_fadvise04 1 FAIL : call succeeded unexpectedly
posix_fadvise04 2 FAIL : call succeeded unexpectedly
posix_fadvise04 3 FAIL : call succeeded unexpectedly
posix_fadvise04 4 FAIL : unexpected returnd value - 22 : Invalid
argument - expected 29
posix_fadvise04 5 FAIL : unexpected returnd value - 22 : Invalid
argument - expected 29
posix_fadvise04 6 FAIL : call succeeded unexpectedly
I investigated the problem with Ricardo's help and we realized that this
test isn't supported in kernel versions before 2.6.16 because just in
this version, a patch for the ESPIPE return was applied in the kernel.
And this testcase is about ESPIPE return. In others words, the kernel
wasn't returning what was expected (defined by posix) until the version
2.6.16. So, I wrote this small patch to fix this problem.
Regards,
PS: sorry for any mistake here, but this is may first patch.
--
----------------------------------------
Marco Antonio Fernandes Junior
Software Engineer
IBM Linux Technology Center
Phone: +55 19 2132 4345
T/L: 839 4345
email: [EMAIL PROTECTED]
----------------------------------------
diff -Naur ltp-full-20071130/testcases/kernel/syscalls/fadvise/posix_fadvise04.c ltp-full-new/testcases/kernel/syscalls/fadvise/posix_fadvise04.c
--- ltp-full-20071130/testcases/kernel/syscalls/fadvise/posix_fadvise04.c 2007-11-22 05:58:25.000000000 -0800
+++ ltp-full-new/testcases/kernel/syscalls/fadvise/posix_fadvise04.c 2007-12-17 10:21:22.090202048 -0800
@@ -79,6 +79,12 @@
char *msg; /* message returned from parse_opts */
int i;
+ /* Disable test if the version of the kernel is less than 2.6.16 */
+ if((tst_kvercmp(2,6,16)) < 0) {
+ tst_resm(TWARN, "This test can only run on kernels that are ");
+ tst_resm(TWARN, "2.6.16 and higher");
+ exit(0);
+ }
/*
* parse standard options
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list