On Thu, 2008-10-09 at 00:35 -0700, CAI Qian wrote:
> Hi,
>
> Remap_file_pages01 and remap_file_pages02 tests always failed on
> IA-64 with Kernel 2.6.9 as below,
>
> # ./remap_file_pages01
> remap_file_pages01 1 FAIL : remap_file_pages error for page=1207959552,
> page_sz=32768,
> window_pages=14 (errno=38 : Function not implemented)
>
> # ./remap_file_pages02
> remap_file_pages02 1 FAIL : remap_file_pages(2) failed to produce
> expected error: 22, errno:
> EINVAL. because got error 38
> remap_file_pages02 2 FAIL : remap_file_pages(2) failed to produce
> expected error: 22, errno:
> EINVAL. because got error 38
> remap_file_pages02 3 FAIL : remap_file_pages(2) failed to produce
> expected error: 22, errno:
> EINVAL. because got error 38
> remap_file_pages02 4 FAIL : remap_file_pages(2) failed to produce
> expected error: 22, errno:
> EINVAL. because got error 38 .
>
> So, I added a check to the existing Kernel version checking
> (< 2.6.12). If anybody happens to know the exactly version
> it has started to be implemented, I'll be happy to re-send
> the revised patch.
>
This should be fine.
Regards--
Subrata
> The patched tests outputted the following,
> remap_file_pages01 0 WARN : This test can only run on kernels that are
> 2.6.12 and higher
> remap_file_pages02 0 WARN : This test can only run on kernels that are
> 2.6.12 and higher
>
> Cai Qian
>
> Signed-off-by: CAI Qian <[EMAIL PROTECTED]>
>
> --- testcases/kernel/syscalls/remap_file_pages/remap_file_pages01.c.orig
> 2008-10-09
> 03:13:31.000000000 -0400
> +++ testcases/kernel/syscalls/remap_file_pages/remap_file_pages01.c
> 2008-10-09 03:19:03.000000000
> -0400
> @@ -117,7 +117,7 @@
> int lc; /* loop counter */
> char *msg; /* message returned from parse_opts */
>
> -#if defined (__s390__) || (__s390x__)
> +#if defined (__s390__) || (__s390x__) || (__ia64__)
> /* Disables the test in case the kernel version is lower than 2.6.12
> and arch is s390 */
> if((tst_kvercmp(2, 6, 12)) < 0)
> {
>
> --- testcases/kernel/syscalls/remap_file_pages/remap_file_pages02.c.orig
> 2008-10-09
> 03:13:39.000000000 -0400
> +++ testcases/kernel/syscalls/remap_file_pages/remap_file_pages02.c
> 2008-10-09 03:20:06.000000000
> -0400
> @@ -133,7 +133,7 @@
> int lc, i; /* loop counter */
> char *msg; /* message returned from parse_opts */
>
> -#if defined (__s390__) || (__s390x__)
> +#if defined (__s390__) || (__s390x__) || (__ia64__)
> /* Disables the test in case the kernel version is lower than 2.6.12
> and arch is s390 */
> if((tst_kvercmp(2, 6, 12)) < 0)
> {
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Ltp-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list