From d911109689713e7afc4da354b9f90eee9c85d403 Mon Sep 17 00:00:00 2001 From: yuqing Date: Mon, 25 Jan 2016 17:47:55 +0800 Subject: [PATCH] test changed --- src/tests/test_mblock.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/tests/test_mblock.c b/src/tests/test_mblock.c index cbb1358..c3d3e0c 100644 --- a/src/tests/test_mblock.c +++ b/src/tests/test_mblock.c @@ -61,15 +61,9 @@ int main(int argc, char *argv[]) srand(time(NULL)); log_init(); g_log_context.log_level = LOG_DEBUG; - if ((result=iniLoadFromFile(filename, &iniContext)) != 0) { - logError("file: "__FILE__", line: %d, " - "load conf file \"%s\" fail, ret code: %d", - __LINE__, filename, result); - return result; - } -load_local_host_ip_addrs(); -print_local_host_ip_addrs(); + load_local_host_ip_addrs(); + print_local_host_ip_addrs(); getifconfigs(if_configs, sizeof(if_configs) / sizeof(if_configs[0]), &count); printf("ifconfig count: %d\n", count); @@ -105,6 +99,14 @@ print_local_host_ip_addrs(); } #endif + if ((result=iniLoadFromFile(filename, &iniContext)) != 0) { + logError("file: "__FILE__", line: %d, " + "load conf file \"%s\" fail, ret code: %d", + __LINE__, filename, result); + return result; + } + + //iniPrintItems(&iniContext); iniFreeContext(&iniContext);