Skip to content

Commit f9b040a

Browse files
Android/wasm runners: a tester test marked '// not own' is skipped under own, as ctest does (#1104)
00to_string_forms_any.ts is not registered for own in ctest (its first line says why), but the Android runner ran it under own, where it aborts with "Can't cast from any type". Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent b5d8965 commit f9b040a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎tslang/test/suites.mjs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ export const makeSuites = (defaultLibRepo) => ({
4040
dir: path.join(repo, "tslang/test/tester/tests"),
4141
files: testerFiles,
4242
compileArgs: ["--no-default-lib"],
43+
// a test that ctest does not run under own says so on its first line, as the default library's do
44+
marker: (source, leg) =>
45+
source.split(/\r?\n/, 1)[0].startsWith("// not own") && leg.mm === "own" ? "marked '// not own'" : null,
4346
passed: (run) => run.code === 0 && (run.stdout + run.stderr).includes("done.") ? null
4447
: run.code !== 0 ? `exit code ${run.code}` : "no 'done.' msg.",
4548
},

0 commit comments

Comments
 (0)