1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:57: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:
Andreas Kling 2020-04-19 17:33:18 +02:00
parent f7a1696087
commit 69566bd4d6

View file

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