From be1dfc7e082bf1936aee03dd9f6468ad5c7f13fa Mon Sep 17 00:00:00 2001 From: lifansheng Date: Mon, 27 Sep 2021 17:12:25 +0800 Subject: [PATCH] modify compile warning Signed-off-by: lifansheng --- BUILD.gn | 2 +- run_test262.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index fbbfe4760b..bfbba686dd 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -221,7 +221,7 @@ config("ark_jsruntime_config") { config("ecma_test_config") { visibility = [ ":*" ] - cflags_cc = [ "-Wno-sign-compare" ] + cflags_cc = [] } ecma_source = [ diff --git a/run_test262.sh b/run_test262.sh index f54a143689..c648234fd0 100755 --- a/run_test262.sh +++ b/run_test262.sh @@ -15,7 +15,7 @@ set -e pushd ark/ts2abc - time=`date +'%Y%m%d%H%M%S'` + time=$(date +'%Y%m%d%H%M%S') if [ ! -d report ];then mkdir report fi @@ -35,7 +35,7 @@ pushd ark/ts2abc cp out/test262/result.txt report/result_es2015_${time}.txt pushd report - es2015_fail=`grep FAIL result_es2015_${time}.txt | wc -l` + es2015_fail=$(grep FAIL result_es2015_${time}.txt | wc -l) threshold=0 if [ ${es2015_fail} -gt ${threshold} ];then echo 'test262 fail case over thresgold' -- Gitee