summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-06-16 11:04:51 +0200
committerThomas Haller <thaller@redhat.com>2016-06-16 11:04:51 +0200
commit89d32944af5a64c864cb3ad421d198206680b383 (patch)
tree2368840b9e5ef5e4b209cdcc1ee5f403d6e4f899
parent6dd2b316b5d03b28d2dd792dc4fa25a695b26d4f (diff)
downloadNetworkManager-89d32944af5a64c864cb3ad421d198206680b383.tar.gz
tests: fix checking NM_ASSERT_NO_MSG define in "nm-test-utils.h"
"nm-test-utils.h" may also be used by the VPN plugins, there we have no NM_ASSERT_NO_MSG define.
-rw-r--r--shared/nm-utils/nm-test-utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/nm-utils/nm-test-utils.h b/shared/nm-utils/nm-test-utils.h
index 83e1f47e47..dba41c4ba9 100644
--- a/shared/nm-utils/nm-test-utils.h
+++ b/shared/nm-utils/nm-test-utils.h
@@ -92,7 +92,7 @@
#include "nm-default.h"
-#if NM_ASSERT_NO_MSG
+#if defined(NM_ASSERT_NO_MSG) && NM_ASSERT_NO_MSG
#undef g_return_if_fail_warning
#undef g_assertion_message_expr
#endif