mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 08:20:11 +01:00
ifcfg-rh: clean up temporary testcase certificates files (fixes distcheck)
This commit is contained in:
parent
e9165c0f7d
commit
5bce4adfbb
1 changed files with 15 additions and 0 deletions
|
|
@ -49,6 +49,7 @@
|
|||
#include "common.h"
|
||||
#include "reader.h"
|
||||
#include "writer.h"
|
||||
#include "utils.h"
|
||||
|
||||
#if 0
|
||||
static void
|
||||
|
|
@ -7021,6 +7022,7 @@ test_write_wired_8021x_tls (NMSetting8021xCKScheme scheme,
|
|||
gboolean ignore_error = FALSE;
|
||||
NMSetting8021xCKFormat format = NM_SETTING_802_1X_CK_FORMAT_UNKNOWN;
|
||||
const char *pw;
|
||||
char *tmp;
|
||||
|
||||
connection = nm_connection_new ();
|
||||
g_assert (connection != NULL);
|
||||
|
|
@ -7184,6 +7186,19 @@ test_write_wired_8021x_tls (NMSetting8021xCKScheme scheme,
|
|||
g_assert (nm_connection_compare (connection, reread, NM_SETTING_COMPARE_FLAG_EXACT));
|
||||
}
|
||||
|
||||
/* Clean up created certs and keys */
|
||||
tmp = utils_cert_path (testfile, "ca-cert.der");
|
||||
unlink (tmp);
|
||||
g_free (tmp);
|
||||
|
||||
tmp = utils_cert_path (testfile, "client-cert.der");
|
||||
unlink (tmp);
|
||||
g_free (tmp);
|
||||
|
||||
tmp = utils_cert_path (testfile, "private-key.pem");
|
||||
unlink (tmp);
|
||||
g_free (tmp);
|
||||
|
||||
g_free (testfile);
|
||||
g_object_unref (connection);
|
||||
g_object_unref (reread);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue