From e0d103b1a21cdd644d8800e6c76e44fe7b5ee2f8 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 20 May 2015 19:03:47 +0200 Subject: [PATCH] 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. --- include/nm-test-utils.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/nm-test-utils.h b/include/nm-test-utils.h index c61e8f85f..c236a1381 100644 --- a/include/nm-test-utils.h +++ b/include/nm-test-utils.h @@ -97,8 +97,10 @@ #include "gsystem-local-alloc.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 "nm-keyfile-internal.h" #endif /* Analog to EXIT_SUCCESS and EXIT_FAILURE. */