chiark / gitweb /
network: fix tests
authorTom Gundersen <teg@jklm.no>
Sun, 10 Nov 2013 00:26:24 +0000 (01:26 +0100)
committerTom Gundersen <teg@jklm.no>
Sun, 10 Nov 2013 00:26:49 +0000 (01:26 +0100)
One of the tests were assuming the network configuration dirs exist. We
can't do that, so disable it for now.

src/network/test-network.c

index 299f0fa3269de62efb9433d974e7352659dfd44e..586b92a02fe807f2854fb3bdc4925f253a8aa61a 100644 (file)
@@ -32,7 +32,12 @@ static void test_link(struct udev_device *loopback) {
 }
 
 static void test_network_load(Manager *manager) {
-        assert(network_should_reload(manager) == true);
+/*  TODO: should_reload, is false if the config dirs do not exist, so
+ *        so we can't do this test here, move it to a test for paths_check_timestamps
+ *        directly
+ *
+ *        assert(network_should_reload(manager) == true);
+*/
         assert(network_load(manager) >= 0);
         assert(network_should_reload(manager) == false);
 }