Added a header which contains the locations for the testing directory and its subfolders which enables
the test to write into the right logfiles. Also added a calls to skygw_log_sync_all before assertions
forcing all logs to be written to disk at the time the test might fail.
This commit is contained in:
Markus Makela
2015-01-05 15:06:38 +02:00
parent b99467cd63
commit 2d8375bb12
3 changed files with 24 additions and 8 deletions

View File

@ -1,9 +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
#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