[PATCH 2/3] selftests/powerpc: Only run some tests on ppc64le
Gustavo Romero
gromero at linux.vnet.ibm.com
Thu Jul 26 22:54:35 AEST 2018
Hi Michael,
On 07/26/2018 09:24 AM, Michael Ellerman wrote:
> These tests are currently failing on (some) big endian systems. Until
> we can fix that, skip them unless we're on ppc64le.
I can take a look at this.
Is that the same issue related to the gcc version we discussed a month ago?
If not, could you provide the crash logs as a starting point?
Thanks,
Gustavo
> Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>
> ---
> tools/testing/selftests/powerpc/tm/tm-sigreturn.c | 1 +
> tools/testing/selftests/powerpc/tm/tm-tar.c | 1 +
> tools/testing/selftests/powerpc/tm/tm-vmxcopy.c | 1 +
> 3 files changed, 3 insertions(+)
>
> diff --git a/tools/testing/selftests/powerpc/tm/tm-sigreturn.c b/tools/testing/selftests/powerpc/tm/tm-sigreturn.c
> index 85d63449243b..9a6017a1d769 100644
> --- a/tools/testing/selftests/powerpc/tm/tm-sigreturn.c
> +++ b/tools/testing/selftests/powerpc/tm/tm-sigreturn.c
> @@ -55,6 +55,7 @@ int tm_sigreturn(void)
> uint64_t ret = 0;
>
> SKIP_IF(!have_htm());
> + SKIP_IF(!is_ppc64le());
>
> memset(&sa, 0, sizeof(sa));
> sa.sa_handler = handler;
> diff --git a/tools/testing/selftests/powerpc/tm/tm-tar.c b/tools/testing/selftests/powerpc/tm/tm-tar.c
> index 2d2fcc2b7a60..f31fe5a28ddb 100644
> --- a/tools/testing/selftests/powerpc/tm/tm-tar.c
> +++ b/tools/testing/selftests/powerpc/tm/tm-tar.c
> @@ -26,6 +26,7 @@ int test_tar(void)
> int i;
>
> SKIP_IF(!have_htm());
> + SKIP_IF(!is_ppc64le());
>
> for (i = 0; i < num_loops; i++)
> {
> diff --git a/tools/testing/selftests/powerpc/tm/tm-vmxcopy.c b/tools/testing/selftests/powerpc/tm/tm-vmxcopy.c
> index 0274de7b11f3..fe52811584ae 100644
> --- a/tools/testing/selftests/powerpc/tm/tm-vmxcopy.c
> +++ b/tools/testing/selftests/powerpc/tm/tm-vmxcopy.c
> @@ -46,6 +46,7 @@ int test_vmxcopy()
> uint64_t aborted = 0;
>
> SKIP_IF(!have_htm());
> + SKIP_IF(!is_ppc64le());
>
> fd = mkstemp(tmpfile);
> assert(fd >= 0);
>
More information about the Linuxppc-dev
mailing list