diff 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
line wrap: on
line diff
--- a/tests/systemd.rs	Tue Dec 22 13:56:56 2020 +0100
+++ b/tests/systemd.rs	Tue Dec 22 13:58:47 2020 +0100
@@ -23,7 +23,7 @@
 }
 
 #[test]
-#[cfg_attr(not(all(linux, feature = "enable_systemd")), should_panic)]
+#[cfg_attr(not(all(target_os = "linux", feature = "enable_systemd")), should_panic)]
 fn main() {
     comm::main::<Test>();
 }