Skip to content

Commit d7dbc33

Browse files
committed
Opt out of Shutdown tests on Windows
1 parent e0cb130 commit d7dbc33

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/ark/tests/kernel.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,6 +1159,7 @@ fn install_sigint_handler() {
11591159
// Note that because of these shutdown tests you _have_ to use `cargo nextest`
11601160
// instead of `cargo test`, so that each test has its own process and R thread.
11611161
#[test]
1162+
#[cfg(unix)]
11621163
fn test_shutdown_request() {
11631164
install_sigint_handler();
11641165
let frontend = DummyArkFrontend::lock();
@@ -1176,6 +1177,7 @@ fn test_shutdown_request() {
11761177
}
11771178

11781179
#[test]
1180+
#[cfg(unix)]
11791181
fn test_shutdown_request_with_restart() {
11801182
install_sigint_handler();
11811183
let frontend = DummyArkFrontend::lock();
@@ -1197,6 +1199,7 @@ static SHUTDOWN_TESTS_ENABLED: bool = false;
11971199
// Can shut down Ark when running a nested debug console
11981200
// https://github.com/posit-dev/positron/issues/6553
11991201
#[test]
1202+
#[cfg(unix)]
12001203
fn test_shutdown_request_browser() {
12011204
if !SHUTDOWN_TESTS_ENABLED {
12021205
return;
@@ -1236,6 +1239,7 @@ fn test_shutdown_request_browser() {
12361239
}
12371240

12381241
#[test]
1242+
#[cfg(unix)]
12391243
fn test_shutdown_request_while_busy() {
12401244
if !SHUTDOWN_TESTS_ENABLED {
12411245
return;

0 commit comments

Comments
 (0)