public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v3] Fix mistake in strcmp() for skipping in aarch64
@ 2016-12-17  4:30 the_hoang0709
  2017-01-11  9:48 ` Cyril Hrubis
  0 siblings, 1 reply; 3+ messages in thread
From: the_hoang0709 @ 2016-12-17  4:30 UTC (permalink / raw)
  To: ltp

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-11 14:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-17  4:30 [LTP] [PATCH v3] Fix mistake in strcmp() for skipping in aarch64 the_hoang0709
2017-01-11  9:48 ` Cyril Hrubis
2017-01-11 14:10   ` Hoang Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox