Mercurial > crates > systemd-socket
comparison tests/systemd.rs @ 16:bc76507dd878
Fixed conditional compilation based on OS
A mistake was causing systemd to never enable and the tests were too
clever to detect that. Not sure what to do with it.
author | Martin Habovstiak <martin.habovstiak@gmail.com> |
---|---|
date | Tue, 22 Dec 2020 13:58:47 +0100 |
parents | f740dadd2948 |
children | cfef4593e207 |
comparison
equal
deleted
inserted
replaced
15:08b37039504b | 16:bc76507dd878 |
---|---|
21 .spawn() | 21 .spawn() |
22 } | 22 } |
23 } | 23 } |
24 | 24 |
25 #[test] | 25 #[test] |
26 #[cfg_attr(not(all(linux, feature = "enable_systemd")), should_panic)] | 26 #[cfg_attr(not(all(target_os = "linux", feature = "enable_systemd")), should_panic)] |
27 fn main() { | 27 fn main() { |
28 comm::main::<Test>(); | 28 comm::main::<Test>(); |
29 } | 29 } |