[LTP] [PATCH v3] Fix mistake in strcmp() for skipping in aarch64

the_hoang0709@yahoo.com the_hoang0709@yahoo.com
Sat Dec 17 05:30:22 CET 2016


From: Vertigo <the_hoang0709@yahoo.com>

Fix mistake in strcmp() for skipping in aarch64.
And there is the same error in aarch64be, so add it.

Signed-off-by: Vertigo <the_hoang0709@yahoo.com>
---
 testcases/kernel/mem/tunable/max_map_count.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testcases/kernel/mem/tunable/max_map_count.c b/testcases/kernel/mem/tunable/max_map_count.c
index eb7486f..75a5098 100644
--- a/testcases/kernel/mem/tunable/max_map_count.c
+++ b/testcases/kernel/mem/tunable/max_map_count.c
@@ -139,7 +139,8 @@ static bool filter_map(const char *line)
 		return true;
 #elif defined(__arm__)
 	/* Skip it when run it in aarch64 */
-	if (strcmp(un.machine, "aarch64"))
+	if ((!strcmp(un.machine, "aarch64"))
+	|| (!strcmp(un.machine, "aarch64_be")))
 		return false;
 
 	/* Older arm kernels didn't label their vdso maps */
-- 
2.10.1.windows.1



More information about the ltp mailing list