mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-13 12:23:38 +01:00
test(transport): the listener tests run on Windows too, against the uds_windows listener the Windows daemon uses
This commit is contained in:
1 parent
a81a1120cd
commit
3464fb0c58
1 file changed
+9
-1
@@ -254,13 +254,21 @@ impl CommandListener for uds_windows::UnixListener {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(all(test, unix))]
|
||||
/// The tests run against the listener each platform really uses: the Unix domain sockets of the OS
|
||||
/// on Unix, and the `uds_windows` ones (AF_UNIX on Windows) that the Windows daemon listens on
|
||||
#[cfg(all(test, any(unix, windows)))]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use parking_lot::Mutex;
|
||||
#[cfg(unix)]
|
||||
use std::os::unix::net::UnixListener;
|
||||
#[cfg(unix)]
|
||||
use std::os::unix::net::UnixStream;
|
||||
use std::sync::Arc;
|
||||
#[cfg(windows)]
|
||||
use uds_windows::UnixListener;
|
||||
#[cfg(windows)]
|
||||
use uds_windows::UnixStream;
|
||||
|
||||
/// A window manager that records what it is asked, and answers each message with its name
|
||||
struct Recorder {
|
||||
|
||||
Reference in new issue
Block a user