refactored tests (#147)

This commit is contained in:
Timofey Turenko
2017-12-08 12:23:04 +02:00
committed by GitHub
parent c6daf8c26b
commit 3c88bf1ec6
253 changed files with 5265 additions and 3649 deletions

View File

@ -58,13 +58,13 @@ int main(int argc, char *argv[])
Test->set_timeout(30);
char str[1024];
sprintf(str, "php %s/bug729.php %s %d %s %s", test_dir, Test->maxscale_IP, Test->rwsplit_port,
Test->maxscale_user, Test->maxscale_password);
sprintf(str, "php %s/bug729.php %s %d %s %s", test_dir, Test->maxscales->IP[0], Test->maxscales->rwsplit_port[0],
Test->maxscales->user_name, Test->maxscales->password);
Test->tprintf("Executing PHP script: %s\n", str);
Test->add_result(system(str), "PHP script FAILED!\n");
Test->check_log_err((char *) "Can't route MYSQL_COM_STMT_PREPARE", false);
Test->check_log_err(0, (char *) "Can't route MYSQL_COM_STMT_PREPARE", false);
int rval = Test->global_result;
delete Test;