diff options
| author | 2026-10-15 00:53:25 +0330 | |
|---|---|---|
| committer | 2026-10-15 00:53:25 +0330 | |
| commit | 0e333abab5d684be37043196b4c006b71bdf850e (patch) | |
| tree | d7e6664befd82268d2681c817542b3592bab379d /tests/test.sh | |
| parent | bench: sieve.zc and trees.zc take namespace and include rt, so run.py's check... (diff) | |
| parent | todo: destructors item closed with what landed; what is left (reassignment fr... (diff) | |
merge work/dtor: destructors (drop on any heap value, heap(), struct drop, collector drops once with resurrection, freed blocks forget their drop)
Diffstat (limited to 'tests/test.sh')
| -rwxr-xr-x | tests/test.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test.sh b/tests/test.sh index 1be4557..a3370f2 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -347,7 +347,7 @@ s_small() { # code literals can look like pointers on a compact map. test collection and # the retained root without assuming the default map's exact reclaim count. for vm in $T/zyms $T/zys; do - out=$(sed 's/f >= 990/f > 0/' tests/programs/gc.zc | $vm | tr '\n' '/') + out=$(sed -E 's/f >= [0-9]+/f > 0/' tests/programs/gc.zc | $vm | tr '\n' '/') chk "$out" "1000 1 900 1 199900/" "small collector makes progress and preserves its root" done @@ -578,6 +578,7 @@ s_lsp() { case "$h" in *"$w"*) chk 1 1 "lsp hint: $w";; *) chk 0 1 "lsp hint: $w";; esac done chk "$($lsp < examples/struct_closure_opt.zc | grep -c error)" "0" "lsp: methods and closures check clean" + case "$($lsp < tests/data/drop_hint.zc)" in *"value with drop is never bound; it drops at the end of this statement"*) chk 1 1 "lsp hint: a value with drop that is never bound";; *) chk 0 1 "lsp hint: a value with drop that is never bound";; esac # a file of a larger build checks on its own: its bodyless declarations are not errors in check mode for f in src/runtime/rt.zc src/runtime/run.zc src/lsp/server.zc; do chk "$($lsp < $f | grep -c ': error:')" "0" "lsp: $f checks alone"; done # the compiler is several files that only make sense together: check them as one document |
