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.
This commit is contained in:
Ruben Ayrapetyan 2014-10-30 19:21:14 +03:00
parent b4bd0bfb4c
commit 290f6a7551

View File

@ -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"