mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07:35 +00:00
LibJS: Allow passing "js" flags to run-tests
This allows us to run "run-tests -g" for testing with GC after every heap allocation. This may flush out bugs that would otherwise not occur if GC'ing only occasionally.
This commit is contained in:
parent
f7a1696087
commit
69566bd4d6
1 changed files with 3 additions and 1 deletions
|
@ -9,13 +9,15 @@ else
|
|||
export UBSAN_OPTIONS=print_stacktrace=1
|
||||
fi
|
||||
|
||||
extra_args="$*"
|
||||
|
||||
pass_count=0
|
||||
fail_count=0
|
||||
count=0
|
||||
|
||||
GLOBIGNORE=test-common.js
|
||||
for f in *.js; do
|
||||
result=`$js_program -t $f 2>/dev/null`
|
||||
result=`$js_program $extra_args -t $f 2>/dev/null`
|
||||
if [ "$result" = "PASS" ]; then
|
||||
let pass_count++
|
||||
echo -ne "( \033[32;1mPass\033[0m ) "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue