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

@ -5,12 +5,12 @@
#include "testconnections.h"
#define MONITOR_NAME "mysql-monitor"
#define MONITOR_NAME "mysql-monitor"
#define SERVICE_NAME1 "rwsplit-service"
#define SERVICE_NAME2 "read-connection-router-slave"
#define SERVICE_NAME3 "read-connection-router-master"
void add_servers(TestConnections *test)
void add_servers(TestConnections* test)
{
test->tprintf("Adding the servers");
@ -25,7 +25,7 @@ void add_servers(TestConnections *test)
}
}
void do_query(TestConnections *test, bool should_fail)
void do_query(TestConnections* test, bool should_fail)
{
test->tprintf("Trying to query, expecting %s", should_fail ? "failure" : "success");
test->set_timeout(120);
@ -34,9 +34,9 @@ void do_query(TestConnections *test, bool should_fail)
bool failed = execute_query(test->maxscales->conn_rwsplit[0], "select @@server_id") == 0;
const char *msg = should_fail ?
"Query was successful when failure was expected." :
"Query failed when success was expected.";
const char* msg = should_fail
? "Query was successful when failure was expected."
: "Query failed when success was expected.";
test->add_result(failed == should_fail, msg);
test->maxscales->close_maxscale_connections(0);
@ -44,9 +44,9 @@ void do_query(TestConnections *test, bool should_fail)
test->stop_timeout();
}
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->tprintf("Creating servers");