Files
marqdo/tests/lib/foreign-env-timeout.mq.md
T
cflmy e32ff8f6b3 feat(foreign): structured invoke, presets, probe and config
F0/F1: safe execution core (exec gate, bounded IO, process-group timeout), structured invoke records, run options, 15 language presets, register/unset/probe/config, view stderr/exit/ms, and node/bash gold tests.
2026-10-18 01:26:53 +08:00

564 B


title: foreign env cwd timeout import foreign:lib/foreign.mq.md

main

环境 =

MODE NOTE
fast test

环境检查 =

console.log(process.env.MODE + "|" + process.env.MARQDO_FOREIGN_LANG);

检查 = > foreign.invoke code=环境检查 env=环境 检查输出 = > trim stdout

print text=检查输出

慢 =

setTimeout(() => console.log("late"), 5000);

超时 = > foreign.invoke code=慢 timeout=0.5

print text=ok print text=timed_out