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:
@@ -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. */
|
||||||
|
Reference in New Issue
Block a user