diff --git a/BUILD.gn b/BUILD.gn index fbbfe4760bc54ece6c9e6d01728eaaf190f776bf..bfbba686dd41737aad18b339830a5c3307337681 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 f54a1436899d348c7d9228ab71a156c982df037d..c648234fd0e472f505c6e1e6a21cc4d51dd4340a 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'