diff tests/systemd.rs @ 7:9731ff589d9c

Fix tests on non-linux systems We need to check that systemd tests fail on non-linux systems instead.
author Martin Habovstiak <martin.habovstiak@gmail.com>
date Fri, 27 Nov 2020 16:29:09 +0100
parents ef8bf41097ac
children f740dadd2948
line wrap: on
line diff
--- a/tests/systemd.rs	Fri Nov 27 16:15:57 2020 +0100
+++ b/tests/systemd.rs	Fri Nov 27 16:29:09 2020 +0100
@@ -23,6 +23,7 @@
 }
 
 #[test]
+#[cfg_attr(not(linux), should_panic)]
 fn main() {
     comm::main::<Test>();
 }