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

@ -6,9 +6,9 @@
#include "testconnections.h"
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(20);
Test->repl->connect();
@ -22,11 +22,17 @@ int main(int argc, char *argv[])
Test->tprintf("Checking number of connections ot backend servers\n");
for (int i = 0; i < Test->repl->N; i++)
{
conn_num = get_conn_num(Test->repl->nodes[i], Test->maxscales->ip(0), Test->maxscales->hostname[0], (char *) "test");
conn_num
= get_conn_num(Test->repl->nodes[i],
Test->maxscales->ip(0),
Test->maxscales->hostname[0],
(char*) "test");
Test->tprintf("connections: %u\n", conn_num);
if ((i == 0) && (conn_num != 1))
{
Test->add_result(1, " Master should have only 1 connection, but it has %d connection(s)\n", conn_num);
Test->add_result(1,
" Master should have only 1 connection, but it has %d connection(s)\n",
conn_num);
}
all_conn += conn_num;
}