 e5d6e5329a
			
		
	
	e5d6e5329a
	
	
	
		
			
			Formatted all of the source code that was not accordance with the coding style. This was caused by merges from 2.2 into 2.3.
		
			
				
	
	
		
			22 lines
		
	
	
		
			622 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			622 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /**
 | |
|  * MXS-2115: Automatic version string detection doesn't work
 | |
|  *
 | |
|  * When servers are available, the backend server and Maxscale should return the
 | |
|  * same version string.
 | |
|  */
 | |
| 
 | |
| #include "testconnections.h"
 | |
| 
 | |
| int main(int argc, char** argv)
 | |
| {
 | |
|     TestConnections test(argc, argv);
 | |
|     test.repl->connect();
 | |
|     test.maxscales->connect();
 | |
| 
 | |
|     std::string direct = mysql_get_server_info(test.repl->nodes[0]);
 | |
|     std::string mxs = mysql_get_server_info(test.maxscales->conn_rwsplit[0]);
 | |
|     test.expect(direct == mxs, "MaxScale sends wrong version: %s != %s", direct.c_str(), mxs.c_str());
 | |
| 
 | |
|     return test.global_result;
 | |
| }
 |