mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
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:
parent
b4bd0bfb4c
commit
290f6a7551
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user