summaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2019-01-28 10:36:12 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2019-01-28 10:36:12 +0100
commita3df9bcadc57be70bdadc8cf21290e4fe6c9b37a (patch)
tree630daf21227a6fcd6466f65d70f5809928e2c8b2 /unittest
parente6fcd7230954c6111bba63e7f7201fc81e50178e (diff)
parentad220b96fb01dbb6acf7e51bdd8d4d6362d96ea7 (diff)
downloadmariadb-git-a3df9bcadc57be70bdadc8cf21290e4fe6c9b37a.tar.gz
Merge branch '5.5' into 10.0
Diffstat (limited to 'unittest')
-rw-r--r--unittest/mysys/thr_template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittest/mysys/thr_template.c b/unittest/mysys/thr_template.c
index d1bc0868ca0..0e06bf6e731 100644
--- a/unittest/mysys/thr_template.c
+++ b/unittest/mysys/thr_template.c
@@ -34,7 +34,7 @@ void test_concurrently(const char *test, pthread_handler handler, int n, int m)
bad= 0;
diag("Testing %s with %d threads, %d iterations... ", test, n, m);
- for (i= n; i; i--)
+ for (i= 0; i < n; i++)
{
if (pthread_create(&threads[i], 0, handler, &m) != 0)
{
@@ -43,7 +43,7 @@ void test_concurrently(const char *test, pthread_handler handler, int n, int m)
}
}
- for (i= n; i; i--)
+ for (i= 0; i < n; i++)
pthread_join(threads[i], 0);
now= my_interval_timer() - now;