From c99b4964ca7da035bf2895812ef02bcfbdefa67a Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 5 Jan 2005 17:14:29 +0500 Subject: replace position names and testes fixed bug --- mysql-test/mysql_test_run_new.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mysql-test/mysql_test_run_new.c') diff --git a/mysql-test/mysql_test_run_new.c b/mysql-test/mysql_test_run_new.c index ecae0b6ad4d..bdebe912b97 100644 --- a/mysql-test/mysql_test_run_new.c +++ b/mysql-test/mysql_test_run_new.c @@ -1531,10 +1531,10 @@ int main(int argc, char **argv) else { /* run all tests */ - names= malloc(MAX_COUNT_TESTES*sizeof(void*)); - if (!names) + testes= malloc(MAX_COUNT_TESTES*sizeof(void*)); + if (!testes) die("can not allcate memory for sorting"); - testes= names; + names= testes; name_index= 0; #ifndef __WIN__ struct dirent *entry; @@ -1619,7 +1619,7 @@ int main(int argc, char **argv) #endif qsort( (void *)testes, name_index, sizeof( char * ), compare ); - for (index= 0; index <= name_index; index++) + for (index= 0; index < name_index; index++) { run_test(testes[index]); free(testes[index]); -- cgit v1.2.1