[systemd-commits] src/network

Tom Gundersen tomegun at kemper.freedesktop.org
Sun Nov 10 01:23:08 CET 2013


 src/network/test-network.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 7c99d940c11e4da1863a218b6b70dd16e65b7518
Author: Tom Gundersen <teg at jklm.no>
Date:   Sun Nov 10 01:26:24 2013 +0100

    network: fix tests
    
    One of the tests were assuming the network configuration dirs exist. We
    can't do that, so disable it for now.

diff --git a/src/network/test-network.c b/src/network/test-network.c
index 299f0fa..586b92a 100644
--- a/src/network/test-network.c
+++ b/src/network/test-network.c
@@ -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);
 }



More information about the systemd-commits mailing list