Mercurial > crates > systemd-socket
comparison tests/systemd.rs @ 28:cfef4593e207
Run `cargo fmt`.
| author | Paul Fisher <paul@pfish.zone> |
|---|---|
| date | Sat, 19 Apr 2025 01:33:50 -0400 |
| parents | bc76507dd878 |
| children |
comparison
equal
deleted
inserted
replaced
| 27:85b0f4a7303d | 28:cfef4593e207 |
|---|---|
| 1 // This integration test requires presence of systemd-socket-activate | 1 // This integration test requires presence of systemd-socket-activate |
| 2 | 2 |
| 3 use std::ffi::OsStr; | |
| 3 use std::io; | 4 use std::io; |
| 4 use std::ffi::OsStr; | 5 use std::process::{Child, Command}; |
| 5 use std::process::{Command, Child}; | |
| 6 | 6 |
| 7 mod comm; | 7 mod comm; |
| 8 | 8 |
| 9 enum Test {} | 9 enum Test {} |
| 10 | 10 |
| 21 .spawn() | 21 .spawn() |
| 22 } | 22 } |
| 23 } | 23 } |
| 24 | 24 |
| 25 #[test] | 25 #[test] |
| 26 #[cfg_attr(not(all(target_os = "linux", feature = "enable_systemd")), should_panic)] | 26 #[cfg_attr( |
| 27 not(all(target_os = "linux", feature = "enable_systemd")), | |
| 28 should_panic | |
| 29 )] | |
| 27 fn main() { | 30 fn main() { |
| 28 comm::main::<Test>(); | 31 comm::main::<Test>(); |
| 29 } | 32 } |
