From 32f1449dddfa25ba083ebf950b147fc49ca10407 Mon Sep 17 00:00:00 2001 From: dragon-zhang Date: Sun, 5 Jan 2025 00:02:40 +0800 Subject: [PATCH] add preemptive test --- open-coroutine/tests/preemptive.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 open-coroutine/tests/preemptive.rs diff --git a/open-coroutine/tests/preemptive.rs b/open-coroutine/tests/preemptive.rs new file mode 100644 index 00000000..02251816 --- /dev/null +++ b/open-coroutine/tests/preemptive.rs @@ -0,0 +1,7 @@ +include!("../examples/preemptive.rs"); + +#[cfg(not(windows))] +#[test] +fn socket_co() -> std::io::Result<()> { + main() +}