Commit 22639def authored by wax@kishkin.ru's avatar wax@kishkin.ru

replace position names and testes

fixed bug
parent e010add5
...@@ -1531,10 +1531,10 @@ int main(int argc, char **argv) ...@@ -1531,10 +1531,10 @@ int main(int argc, char **argv)
else else
{ {
/* run all tests */ /* run all tests */
names= malloc(MAX_COUNT_TESTES*sizeof(void*)); testes= malloc(MAX_COUNT_TESTES*sizeof(void*));
if (!names) if (!testes)
die("can not allcate memory for sorting"); die("can not allcate memory for sorting");
testes= names; names= testes;
name_index= 0; name_index= 0;
#ifndef __WIN__ #ifndef __WIN__
struct dirent *entry; struct dirent *entry;
...@@ -1619,7 +1619,7 @@ int main(int argc, char **argv) ...@@ -1619,7 +1619,7 @@ int main(int argc, char **argv)
#endif #endif
qsort( (void *)testes, name_index, sizeof( char * ), compare ); 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]); run_test(testes[index]);
free(testes[index]); free(testes[index]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment