Skip to content

README: test skip markers, memory-model runs, libc name clashes - #89

Merged
ASDAlexander77 merged 1 commit into
mainfrom
readme-testing-notes
Nov 9, 2026
Merged

ASDAlexander77 merged 1 commit into
mainfrom
readme-testing-notes

Conversation

@ASDAlexander77

Copy link
Copy Markdown
Owner

The README already describes #85–#87. This PR adds three things the Testing section left out.

  • Running the tests under one memory model: tests.ps1 -Model own, ./tests.sh rc, or TSLANG_MM. Without one, the tests run under gc.
  • First-line skip markers: a test that starts with // gc only, // not own or // linux only is skipped under the matching runs. A test with only one part that can't run under some model checks __MEMORY_MODEL__ instead, as tests/json_index.ts does.
  • Function names that clash with libc: a test's functions are global symbols. On Linux, one named like a libc function (read, write, ...) replaces it, for the collector too. The test changed in json_index.ts: readByKey/writeByKey, not read/write (Linux -mm=gc segfault) #88 crashed this way under -mm=gc.

This PR changes only the README; no code changes and no tests to run.

🤖 Generated with Claude Code

The Testing section now shows how to run the tests under one memory model
(tests.ps1 -Model, tests.sh <model>, TSLANG_MM), the first-line markers that
skip a test (// gc only, // not own, // linux only), and that a test function
named like a libc function (read, write) replaces it on Linux, which made a
test segfault under -mm=gc (#88).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ASDAlexander77
ASDAlexander77 merged commit a209648 into main Nov 9, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant