Files
MaxScale/maxscale-system-test/mxs720_line_with_no_equal.cpp
Markus Mäkelä d11c78ad80 Format all sources with Uncrustify
Formatted all sources and manually tuned some files to make the code look
neater.
2018-09-10 13:22:49 +03:00

28 lines
720 B
C++

/**
* @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(0, (char*) "Failed to pre-parse configuration file", true);
Test->check_maxscale_processes(0);
int rval = Test->global_result;
delete Test;
return rval;
}