Added the missing skygw_log_sync_all function to the log_manager.h header and created a header for testing which contains the location of the testing directory.

This commit is contained in:
Markus Makela
2015-01-05 06:48:32 +02:00
parent 185e5b82d6
commit 3bf595673d
4 changed files with 12 additions and 2 deletions

View File

@ -51,7 +51,7 @@ int result;
"testpoll : Initialise the polling system.");
poll_init();
ss_dfprintf(stderr, "\t..done\nAdd a DCB");
dcb = dcb_alloc(DCB_ROLE_SERVICE_LISTENER);
dcb = dcb_alloc(DCB_ROLE_REQUEST_HANDLER);
if(dcb == NULL){
ss_dfprintf(stderr, "\nError on function call: dcb_alloc() returned NULL.\n");

View File

@ -0,0 +1,9 @@
#ifndef MAXSCALE_TEST_H
#define MAXSCALE_TEST_H
#define TEST_DIR ${CMAKE_BINARY_DIR}
#define TEST_LOG_DIR ${CMAKE_BINARY_DIR}/log
#define TEST_BIN_DIR ${CMAKE_BINARY_DIR}/bin
#define TEST_MOD_DIR ${CMAKE_BINARY_DIR}/modules
#define TEST_LIB_DIR ${CMAKE_BINARY_DIR}/lib
#define TEST_ETC_DIR ${CMAKE_BINARY_DIR}/etc
#endif