test: include "nm-keyfile-internal.h" for tests under src/

Including "nm-keyfile-internal.h" before "nm-test-utils.h" enables
a few useful utilities. If we know that our test uses NetworkManagerUtils.h,
we can always include it -- as we have libnm-core available.
This commit is contained in:
Thomas Haller
2015-05-20 19:03:47 +02:00
parent 89c6abc7ab
commit e0d103b1a2

View File

@@ -97,8 +97,10 @@
#include "gsystem-local-alloc.h" #include "gsystem-local-alloc.h"
#ifdef __NETWORKMANAGER_LOGGING_H__ #ifdef __NETWORKMANAGER_LOGGING_H__
/* We are running tests under src/ */ /* We are running tests under src/. Let's include some files by default.
* They are useful, and affect how nm-test-utils.h itself behaves. */
#include "NetworkManagerUtils.h" #include "NetworkManagerUtils.h"
#include "nm-keyfile-internal.h"
#endif #endif
/* Analog to EXIT_SUCCESS and EXIT_FAILURE. */ /* Analog to EXIT_SUCCESS and EXIT_FAILURE. */