Commit 18ce182
test(testgen): deterministic cancellation concurrency primitives
Generate `CancellationSource`/`CancellationToken` usage: create a source, observe
its token is not cancelled, cancel it, observe it is. Both observations are
backend-deterministic (synchronous, no scheduler/timing), exercising the
cancellation runtime objects' lowering across every backend. A safe slice of the
concurrency surface; the scheduler-driven async subset (spawn/await/channels,
needing a `features: async` header and determinism guards) remains future work.
Smoke (>=95% accept, vm==jit) and full N-way incl. compiled (40 cases) green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent a80f449 commit 18ce182
1 file changed
Lines changed: 26 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
| 380 | + | |
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
| 390 | + | |
| 391 | + | |
391 | 392 | | |
392 | 393 | | |
393 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
394 | 418 | | |
395 | 419 | | |
396 | 420 | | |
| |||
0 commit comments