From 290f6a75516944250a681d97d1cb56b8d5d98ac3 Mon Sep 17 00:00:00 2001 From: Ruben Ayrapetyan Date: Thu, 30 Oct 2014 19:21:14 +0300 Subject: [PATCH] Passing file with test at first and sta-jerry.js as second in test262 runner. This is necessary, because 'use strict' directive in test, if any, should appear at beginning of the code. --- tools/run_test_suite_test262.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/run_test_suite_test262.sh b/tools/run_test_suite_test262.sh index d215034ed..a5269456b 100755 --- a/tools/run_test_suite_test262.sh +++ b/tools/run_test_suite_test262.sh @@ -27,13 +27,14 @@ do grep "\* @negative" $test 2>&1 >/dev/null negative=$? - output=`./out/$TARGET/jerry $PARSE $STA_JS $test 2>&1` + cmd="./out/$TARGET/jerry $PARSE $test $STA_JS" + output=`$cmd 2>&1` status=$? if [[ $status -eq 0 && $negative -eq 0 || $status -ne 0 && $negative -ne 0 ]] then (echo "===================="; - echo "./out/$TARGET/jerry $PARSE $STA_JS $test failed: $status"; + echo "$cmd failed: $status"; echo "---------------------"; echo $output; echo;) >> jerry.error."$chapter"