Uncrustify maxscale
See script directory for method. The script to run in the top level MaxScale directory is called maxscale-uncrustify.sh, which uses another script, list-src, from the same directory (so you need to set your PATH). The uncrustify version was 0.66.
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
/**
|
||||
* @file bug495.cpp regression case for bug 495 ( Referring to a nonexisting server in servers=... doesn't even raise a warning )
|
||||
* @file bug495.cpp regression case for bug 495 ( Referring to a nonexisting server in servers=... doesn't
|
||||
*even raise a warning )
|
||||
*
|
||||
* - Maxscale.cnf with "servers= server1, server2,server3 ,server4,server5"
|
||||
* but 'server5' is not defined. Test checks error log for proper error message.
|
||||
@ -7,21 +8,21 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
Description Hartmut Holzgraefe 2014-08-31 21:32:09 UTC
|
||||
Only [server1] and [server2] are defined,
|
||||
service [test_service] and monitor [MySQL monitor]
|
||||
refer to a third server "server3" in their servers=...
|
||||
list though ...
|
||||
|
||||
Nothing in the err or msg log hints towards a problem ...
|
||||
(which originally was caused by a copy/paste error that
|
||||
also lead to the "duplicate section name" error reported
|
||||
earlier ... and which would have been easy to track down
|
||||
if either of these problems would at least have raised a
|
||||
warning - took me almost an hour to track down the actual
|
||||
problem ... :(
|
||||
*/
|
||||
*
|
||||
* Description Hartmut Holzgraefe 2014-08-31 21:32:09 UTC
|
||||
* Only [server1] and [server2] are defined,
|
||||
* service [test_service] and monitor [MySQL monitor]
|
||||
* refer to a third server "server3" in their servers=...
|
||||
* list though ...
|
||||
*
|
||||
* Nothing in the err or msg log hints towards a problem ...
|
||||
* (which originally was caused by a copy/paste error that
|
||||
* also lead to the "duplicate section name" error reported
|
||||
* earlier ... and which would have been easy to track down
|
||||
* if either of these problems would at least have raised a
|
||||
* warning - took me almost an hour to track down the actual
|
||||
* problem ... :(
|
||||
*/
|
||||
|
||||
|
||||
#include <iostream>
|
||||
@ -30,12 +31,12 @@ problem ... :(
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
TestConnections * Test = new TestConnections(argc, argv);
|
||||
TestConnections* Test = new TestConnections(argc, argv);
|
||||
Test->set_timeout(10);
|
||||
Test->check_log_err(0, (char *) "Unable to find server", true);
|
||||
Test->check_log_err(0, (char *) "errors were encountered while processing the configuration", true);
|
||||
Test->check_log_err(0, (char*) "Unable to find server", true);
|
||||
Test->check_log_err(0, (char*) "errors were encountered while processing the configuration", true);
|
||||
|
||||
int rval = Test->global_result;
|
||||
delete Test;
|
||||
|
||||
Reference in New Issue
Block a user