ci: Add test for Windows as well

Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
John Nunley 2024-03-30 08:08:05 -07:00
parent 75e2ea1959
commit 3e8ec39875
No known key found for this signature in database
GPG Key ID: 2FE69973CFD64832
1 changed files with 9 additions and 0 deletions

View File

@ -11,3 +11,12 @@ fn unix_sleep() {
assert!(status.success());
});
}
#[cfg(windows)]
#[test]
fn windows_sleep() {
block_on(async {
let status = Command::new("timeout").arg("5").status().await.unwrap();
assert!(status.success());
});
}