From 6cbb44bc97b2e0c5ad45fdeba802695965651e11 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 21 Mar 2011 17:44:47 -0500 Subject: [PATCH] ifcfg-rh: fix some missing tests in tarball The tests were missing, and because of the way the test was structured, the tests passed. --- src/settings/plugins/ifcfg-rh/tests/Makefile.am | 5 ++++- src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/settings/plugins/ifcfg-rh/tests/Makefile.am b/src/settings/plugins/ifcfg-rh/tests/Makefile.am index 5ee9c4e94c..1b76a4742f 100644 --- a/src/settings/plugins/ifcfg-rh/tests/Makefile.am +++ b/src/settings/plugins/ifcfg-rh/tests/Makefile.am @@ -46,5 +46,8 @@ EXTRA_DIST = \ iscsiadm-test-bad-ipaddr \ iscsiadm-test-bad-gateway \ iscsiadm-test-bad-dns1 \ - iscsiadm-test-bad-dns2 + iscsiadm-test-bad-dns2 \ + iscsiadm-test-bad-entry \ + iscsiadm-test-bad-record + diff --git a/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c b/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c index 5f518f9a22..ebe9e47fbf 100644 --- a/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c +++ b/src/settings/plugins/ifcfg-rh/tests/test-ifcfg-rh.c @@ -9935,6 +9935,8 @@ test_read_ibft_malformed (const char *name, const char *iscsiadm_path) gboolean ignore_error = FALSE; GError *error = NULL; + g_assert (g_file_test (iscsiadm_path, G_FILE_TEST_EXISTS)); + connection = connection_from_file (TEST_IFCFG_IBFT_STATIC, NULL, TYPE_ETHERNET,