Build MaxScale in debug mode for Travis
The internal test set depends on SS_DEBUG being defined and it is only defined for debug builds.
This commit is contained in:
parent
7d202eb084
commit
623acfe1b5
@ -12,7 +12,7 @@ echo TRAVIS_BUILD_DIR: ${TRAVIS_BUILD_DIR}
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTS=Y -DBUILD_AVRO=N
|
||||
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=Y -DBUILD_AVRO=N
|
||||
|
||||
make
|
||||
make test
|
||||
|
@ -11,6 +11,10 @@
|
||||
* Public License.
|
||||
*/
|
||||
|
||||
#ifndef SS_DEBUG
|
||||
#define SS_DEBUG
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -50,7 +50,8 @@ test1()
|
||||
/* Server tests */
|
||||
ss_dfprintf(stderr,
|
||||
"testserver : creating server called MyServer");
|
||||
server = server_alloc("MyServer", "HTTPD", 9876, "NullAuthAccept", NULL);
|
||||
server = server_alloc("MyServer", "HTTPD", 9876, "NullAuthAllow", NULL);
|
||||
ss_info_dassert(server, "Allocating the server should not fail");
|
||||
mxs_log_flush_sync();
|
||||
|
||||
//ss_info_dassert(NULL != service, "New server with valid protocol and port must not be null");
|
||||
|
Loading…
x
Reference in New Issue
Block a user