From 362c4fe18810bb3ff0e71aebe795692d9388f31b Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 10 Jul 2014 13:25:57 +0200 Subject: [PATCH] nmtst: ensure call to nm_utils_get_monotonic_timestamp_s() in nmtst_init() Signed-off-by: Thomas Haller --- include/nm-test-utils.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/nm-test-utils.h b/include/nm-test-utils.h index 83c4080fe0..25aad9d2bd 100644 --- a/include/nm-test-utils.h +++ b/include/nm-test-utils.h @@ -292,6 +292,11 @@ __nmtst_init (int *argc, char ***argv, gboolean assert_logging, const char *log_ atexit (nmtst_free); g_once_init_leave (&atexit_registered, 1); } + +#ifdef NETWORK_MANAGER_UTILS_H + /* ensure that monotonic timestamp is called (because it initially logs a line) */ + nm_utils_get_monotonic_timestamp_s (); +#endif } #ifdef NM_LOGGING_H