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,18 +1,20 @@
/**
* @file bug479.cpp regression case for bug 479 ( Undefined filter reference in MaxScale.cnf causes a crash)
*
* - Maxscale.cnf with "filters=non existing filter | не существуюший фильтер", cheks error log for warnings and
* - Maxscale.cnf with "filters=non existing filter | не существуюший фильтер", cheks error log for warnings
*and
* - check if Maxscale is alive
*/
/*
Markus Mäkelä 2014-08-15 17:38:06 UTC
Undefined filters in services cause a crash when the service is accessed.
How to reproduce:
Define a service with a filter not defined in the MaxScale.cnf file, start MaxScale and access the service.
*/
* Markus Mäkelä 2014-08-15 17:38:06 UTC
* Undefined filters in services cause a crash when the service is accessed.
*
* How to reproduce:
* Define a service with a filter not defined in the MaxScale.cnf file, start MaxScale and access the
* service.
*/
#include <iostream>
@ -21,15 +23,14 @@ Define a service with a filter not defined in the MaxScale.cnf file, start MaxSc
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 filter 'non existing filter", true);
//global_result =Test->check_log_err(0, (char *) "не существуюший фильтер", true);
//global_result +=Test->check_maxscale_alive(0);
Test->check_log_err(0, (char*) "Unable to find filter 'non existing filter", true);
// global_result =Test->check_log_err(0, (char *) "не существуюший фильтер", true);
// global_result +=Test->check_maxscale_alive(0);
int rval = Test->global_result;
delete Test;
return rval;
}