Add tests from develop
Added tests from develop. The test results need to be modified for 2.0.
This commit is contained in:
26
maxscale-system-test/mxs720_line_with_no_equal.cpp
Normal file
26
maxscale-system-test/mxs720_line_with_no_equal.cpp
Normal file
@ -0,0 +1,26 @@
|
||||
/**
|
||||
* @file max720_line_with_no_equal.cpp mxs720 regression case - first part: line without "=", second - weird lines ("MaxScale fails to start and doesn't log any useful message when there are spurious characters in the config file")
|
||||
*
|
||||
* - use incorrect maxscale.cnf
|
||||
* - check log for error
|
||||
*/
|
||||
|
||||
|
||||
#include <iostream>
|
||||
#include <unistd.h>
|
||||
#include "testconnections.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
TestConnections * Test = new TestConnections(argc, argv);
|
||||
Test->set_timeout(30);
|
||||
Test->check_log_err((char *) "Failed to pre-parse configuration file", true);
|
||||
|
||||
Test->check_maxscale_processes(0);
|
||||
int rval = Test->global_result;
|
||||
delete Test;
|
||||
return rval;
|
||||
}
|
||||
|
Reference in New Issue
Block a user