wwtest: native package-test coordinator
Single-directory package-test planner: discovers *.ww, groups white-box and external <pkg>_test sources, composes the combined test package, builds it through the sibling ww driver, and runs it with the runtime's -package/-list/-timeout-ms contract. test/package holds its E2E corpus and the manual runtime fixture set.
This commit is contained in:
16
test/package/cases/timeout/timeout_test.ww
Normal file
16
test/package/cases/timeout/timeout_test.ww
Normal file
@@ -0,0 +1,16 @@
|
||||
package timeout_test;
|
||||
|
||||
import os;
|
||||
|
||||
@test fn timeout_clears_term_resistant_descendant() void = {
|
||||
let pid: i32 = os.fork();
|
||||
assert(pid >= 0);
|
||||
if (pid == 0) {
|
||||
let mask: u64 = 1u64 << ((os.SIGTERM - 1): u64);
|
||||
if (os.sigprocmask(os.SIG_BLOCK, &mask, nil: *u64) != 0) {
|
||||
os.exit(120);
|
||||
};
|
||||
for (true) { };
|
||||
};
|
||||
for (true) { };
|
||||
};
|
||||
Reference in New Issue
Block a user