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 maxscale_process_user.cpp bug143 maxscale_process_user check if Maxscale priocess is running as 'maxscale'
|
||||
* @file maxscale_process_user.cpp bug143 maxscale_process_user check if Maxscale priocess is running as
|
||||
*'maxscale'
|
||||
*
|
||||
*/
|
||||
|
||||
@ -8,15 +9,17 @@
|
||||
#include <iostream>
|
||||
#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);
|
||||
int exit_code;
|
||||
|
||||
Test->set_timeout(50);
|
||||
char *user = Test->maxscales->ssh_node_output(0, "ps -FC maxscale|tail -n 1|cut -f 1 -d \" \"", false,
|
||||
&exit_code);
|
||||
char *nl = user ? strchr(user, '\n') : NULL;
|
||||
char* user = Test->maxscales->ssh_node_output(0,
|
||||
"ps -FC maxscale|tail -n 1|cut -f 1 -d \" \"",
|
||||
false,
|
||||
&exit_code);
|
||||
char* nl = user ? strchr(user, '\n') : NULL;
|
||||
|
||||
if (nl)
|
||||
{
|
||||
@ -24,7 +27,9 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
Test->tprintf("MaxScale is running as '%s'", user);
|
||||
Test->add_result(strcmp(user, "maxscale"), "MaxScale process running as '%s' instead of 'maxscale'\n", user);
|
||||
Test->add_result(strcmp(user, "maxscale"),
|
||||
"MaxScale process running as '%s' instead of 'maxscale'\n",
|
||||
user);
|
||||
|
||||
int rval = Test->global_result;
|
||||
delete Test;
|
||||
|
||||
Reference in New Issue
Block a user