From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cui Bixuan Date: Fri, 16 Dec 2016 18:15:05 +0800 Subject: [LTP] we can ignore it and discuss the problem at 'Fix wrong checking of aarch64' from the_hoang0709@yahoo.com In-Reply-To: <5853A510.1090406@huawei.com> References: <56DD6138.9060109@huawei.com> <5853A510.1090406@huawei.com> Message-ID: <5853BEA9.60307@huawei.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it :-D On 2016/12/16 16:25, Cui Bixuan wrote: > There is a mistake for if (strcmp()) for skipping in aarch64. > And there is the same error in aarch64be, so add it. > > Signed-off-by: Cui Bixuan > --- > testcases/kernel/mem/tunable/max_map_count.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/testcases/kernel/mem/tunable/max_map_count.c b/testcases/kernel/mem/tunable/max_map_count.c > index eb7486f..ca322da 100644 > --- a/testcases/kernel/mem/tunable/max_map_count.c > +++ b/testcases/kernel/mem/tunable/max_map_count.c > @@ -139,7 +139,7 @@ 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 */ >