[PATCH] perf test: Skip test 68 for Powerpc

From: Kajol Jain
Date: Thu Nov 19 2020 - 08:51:02 EST


Commit ed21d6d7c48e6e ("perf tests: Add test for PE binary format support")
adds a WINDOWS EXE file named tests/pe-file.exe, which is
examined by the test case 'PE file support'. As powerpc doesn't support
it, we are skipping this test.

Result in power9 platform before this patach:
[command]# ./perf test -F 68
68: PE file support : Failed!

Result in power9 platform after this patch:
[command]# ./perf test -F 68
68: PE file support : Skip

Signed-off-by: Kajol Jain <kjain@xxxxxxxxxxxxx>
---
tools/perf/tests/pe-file-parsing.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/tests/pe-file-parsing.c b/tools/perf/tests/pe-file-parsing.c
index 4e45178c50f6..14f675f5ffb2 100644
--- a/tools/perf/tests/pe-file-parsing.c
+++ b/tools/perf/tests/pe-file-parsing.c
@@ -18,7 +18,7 @@

#include "tests.h"

-#if defined(HAVE_LIBBFD_SUPPORT) && !defined(__s390x__)
+#if defined(HAVE_LIBBFD_SUPPORT) && !defined(__s390x__) && !defined(__powerpc__)

static int run_dir(const char *d)
{
--
2.27.0