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:
Niclas Antti
2018-09-09 22:26:19 +03:00
parent fa7ec95069
commit c447e5cf15
849 changed files with 35002 additions and 27238 deletions

View File

@ -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;