summaryrefslogtreecommitdiff
path: root/src/settings/plugins/ifnet/tests/test-ifnet.c
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2015-03-23 09:15:51 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2015-06-12 15:59:39 +0200
commitd385a2a57a759981321b8ce01506e1aa6d2a67c4 (patch)
tree6e60bb9ce80fb81cde458ed8faeb982d62d64804 /src/settings/plugins/ifnet/tests/test-ifnet.c
parent6c3d71c431ef63005f9005e68ff49b21b153ee9f (diff)
downloadNetworkManager-d385a2a57a759981321b8ce01506e1aa6d2a67c4.tar.gz
settings: remove hostname handling from plugins
Remove all hostname-related code from plugins since this functionality has been moved to the core.
Diffstat (limited to 'src/settings/plugins/ifnet/tests/test-ifnet.c')
-rw-r--r--src/settings/plugins/ifnet/tests/test-ifnet.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/settings/plugins/ifnet/tests/test-ifnet.c b/src/settings/plugins/ifnet/tests/test-ifnet.c
index 64d3fb8494..72d7e27840 100644
--- a/src/settings/plugins/ifnet/tests/test-ifnet.c
+++ b/src/settings/plugins/ifnet/tests/test-ifnet.c
@@ -70,32 +70,6 @@ test_getdata (void)
}
static void
-test_read_hostname (void)
-{
- char *hostname;
-
- hostname = read_hostname (TEST_IFNET_DIR "/hostname");
- g_assert_cmpstr (hostname, ==, "gentoo");
-
- g_free (hostname);
-}
-
-static void
-test_write_hostname (void)
-{
- char *hostname_path = TEST_SCRATCH_DIR "/hostname-test";
- char *hostname;
-
- write_hostname (hostname_path, "gentoo-nm");
- hostname = read_hostname (hostname_path);
-
- g_assert_cmpstr (hostname, ==, "gentoo-nm");
-
- g_free (hostname);
- unlink (hostname_path);
-}
-
-static void
test_is_static (void)
{
g_assert (!is_static_ip4 ("eth1"));
@@ -404,8 +378,6 @@ main (int argc, char **argv)
g_test_add_func (TPATH "has-ip6-address", test_has_ip6_address);
g_test_add_func (TPATH "has-default-route", test_has_default_route);
g_test_add_func (TPATH "get-data", test_getdata);
- g_test_add_func (TPATH "read-hostname", test_read_hostname);
- g_test_add_func (TPATH "write-hostname", test_write_hostname);
g_test_add_func (TPATH "is-ip4-address", test_is_ip4_address);
g_test_add_func (TPATH "is-ip6-address", test_is_ip6_address);
g_test_add_func (TPATH "convert-ip4-config", test_convert_ipv4_config_block);