libnm-util: skip linking test when address sanitizer is enabled

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.
This commit is contained in:
Beniamino Galvani 2016-05-19 14:19:57 +02:00
parent 01540cf1d3
commit 9aad9022e8

View file

@ -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__ */
/******************************************************************************/