Commit 2fc7fdb
fix: properly detect ctrl-c and resize in pty_terminal tests on Windows
- resize_terminal: compare terminal size before/after instead of
unconditionally printing RESIZE_DETECTED
- send_ctrl_c: clear the "ignore CTRL_C" flag (set by Rust runtime)
with SetConsoleCtrlHandler(None, 0) so CTRL_C_EVENT actually
terminates the process via the default handler, proving send_ctrl_c
delivers the signal. On Unix, verify via SIGINT handler as before.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 0491ad6 commit 2fc7fdb
2 files changed
Lines changed: 49 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
252 | 256 | | |
253 | 257 | | |
254 | | - | |
255 | | - | |
256 | | - | |
| 258 | + | |
257 | 259 | | |
258 | | - | |
259 | | - | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
| 329 | + | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
333 | 336 | | |
334 | 337 | | |
335 | 338 | | |
| |||
384 | 387 | | |
385 | 388 | | |
386 | 389 | | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
387 | 408 | | |
388 | 409 | | |
389 | 410 | | |
390 | | - | |
| 411 | + | |
| 412 | + | |
391 | 413 | | |
392 | 414 | | |
393 | 415 | | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
394 | 419 | | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
| 420 | + | |
404 | 421 | | |
405 | 422 | | |
406 | 423 | | |
| |||
415 | 432 | | |
416 | 433 | | |
417 | 434 | | |
418 | | - | |
419 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
420 | 441 | | |
421 | | - | |
422 | | - | |
| 442 | + | |
423 | 443 | | |
424 | | - | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
425 | 452 | | |
426 | 453 | | |
427 | 454 | | |
| |||
0 commit comments