Skip to content

Commit 64c0dfc

Browse files
committed
Fix tests on Windows
1 parent a7fafe6 commit 64c0dfc

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

crates/ark/tests/dap_notebook.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,9 @@ fn test_notebook_interrupt_at_breakpoint_exits_debugger() {
568568
// Shell reply arrives — kernel unblocked by the Q command
569569
frontend.recv_shell_execute_reply();
570570

571+
// On Windows, interrupting R may emit a stray newline to stderr
572+
frontend.drain_streams();
573+
571574
// IOPub messages from the control thread (interrupt busy/idle) and
572575
// R thread (debug_event Continued, execute_request idle) race.
573576
let msgs = frontend.recv_iopub_interleaved(&[
@@ -700,6 +703,9 @@ fn test_notebook_unexpected_browser_interrupt_via_stdin() {
700703

701704
// IOPub messages from the control thread (interrupt busy/idle) and
702705
// R thread (execute_request idle) race.
706+
// On Windows, interrupting R may emit a stray newline to stderr
707+
frontend.drain_streams();
708+
703709
frontend.recv_iopub_interleaved(&[
704710
// Control thread: interrupt_request busy/idle
705711
&[IopubExpectation::BusyControl, IopubExpectation::IdleControl],

crates/ark/tests/dap_step.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ fn test_dap_continue() {
141141
/// In console mode, interrupt at a breakpoint sends SIGINT (not Q).
142142
/// The debugger should remain active after the interrupt.
143143
#[test]
144+
#[cfg_attr(target_os = "windows", ignore)]
144145
fn test_dap_interrupt_at_breakpoint_stays_in_debugger() {
145146
let frontend = DummyArkFrontend::lock();
146147
let mut dap = frontend.start_dap();

0 commit comments

Comments
 (0)