summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2016-05-19 14:19:57 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2016-05-31 15:45:39 +0200
commite07b4e4bacabbd2c778119a820444fc3ab77b13d (patch)
treeb8da890fe8a438c5d2946e87d34c692854d4772a
parent081d5788aa2aca0dcebbcc642f26e192c02d7e9f (diff)
downloadNetworkManager-bg/asan-bgo761429.tar.gz
libnm-util: skip linking test when address sanitizer is enabledbg/asan-bgo761429
The linking test causes a crash to check whether libnm and libnm-util are both linked. If abrt or systemd-coredump are enabled, the core dump processing will take a long time when the address sanitizer is enabled, due to the huge process address space. It seems a good choice to disable the test when NM was compiled with -fsanitize=address.
-rw-r--r--libnm-util/tests/test-general.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libnm-util/tests/test-general.c b/libnm-util/tests/test-general.c
index 9299bd5b11..d4a7cd4a90 100644
--- a/libnm-util/tests/test-general.c
+++ b/libnm-util/tests/test-general.c
@@ -2392,6 +2392,13 @@ test_connection_normalize_virtual_iface_name (void)
g_object_unref (con);
}
+#if defined (__SANITIZE_ADDRESS__)
+static void
+test_libnm_linking (void)
+{
+ g_test_skip ("Skipping test since address sanitizer is enabled");
+}
+#else /* __SANITIZE_ADDRESS__ */
static void
_test_libnm_linking_setup_child_process (gpointer user_data)
{
@@ -2431,6 +2438,7 @@ test_libnm_linking (void)
g_free (out);
g_free (err);
}
+#endif /* __SANITIZE_ADDRESS__ */
/******************************************************************************/