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:
@@ -27,13 +27,14 @@ do
|
|||||||
grep "\* @negative" $test 2>&1 >/dev/null
|
grep "\* @negative" $test 2>&1 >/dev/null
|
||||||
negative=$?
|
negative=$?
|
||||||
|
|
||||||
output=`./out/$TARGET/jerry $PARSE $STA_JS $test 2>&1`
|
cmd="./out/$TARGET/jerry $PARSE $test $STA_JS"
|
||||||
|
output=`$cmd 2>&1`
|
||||||
status=$?
|
status=$?
|
||||||
|
|
||||||
if [[ $status -eq 0 && $negative -eq 0 || $status -ne 0 && $negative -ne 0 ]]
|
if [[ $status -eq 0 && $negative -eq 0 || $status -ne 0 && $negative -ne 0 ]]
|
||||||
then
|
then
|
||||||
(echo "====================";
|
(echo "====================";
|
||||||
echo "./out/$TARGET/jerry $PARSE $STA_JS $test failed: $status";
|
echo "$cmd failed: $status";
|
||||||
echo "---------------------";
|
echo "---------------------";
|
||||||
echo $output;
|
echo $output;
|
||||||
echo;) >> jerry.error."$chapter"
|
echo;) >> jerry.error."$chapter"
|
||||||
|
|||||||
Reference in New Issue
Block a user