summaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorkent/mysqldev@mysql.com/production.mysql.com <>2007-02-21 18:17:32 +0100
committerkent/mysqldev@mysql.com/production.mysql.com <>2007-02-21 18:17:32 +0100
commitb7f0778e82cbb289b4e8800ed7f5b3766fedb375 (patch)
treed092ff7d0c7ff7b8e0c6600eaf4c67a1d2886c3e /unittest
parent6966fa0c21db6faedaf4ecc7eea4223254803498 (diff)
downloadmariadb-git-b7f0778e82cbb289b4e8800ed7f5b3766fedb375.tar.gz
base64-t.c:
Calculate and output line count first to be compatible with older versions of Test::Harness
Diffstat (limited to 'unittest')
-rw-r--r--unittest/mysys/base64-t.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/unittest/mysys/base64-t.c b/unittest/mysys/base64-t.c
index adef7d97aae..7e4afbb3128 100644
--- a/unittest/mysys/base64-t.c
+++ b/unittest/mysys/base64-t.c
@@ -18,13 +18,18 @@
#include <tap.h>
#include <string.h>
+#define BASE64_LOOP_COUNT 500
+#define BASE64_ROWS 4 /* Number of ok(..) */
+
int
main(void)
{
int i, cmp;
size_t j, k, l, dst_len, needed_length;
- for (i= 0; i < 500; i++)
+ plan(BASE64_LOOP_COUNT * BASE64_ROWS);
+
+ for (i= 0; i < BASE64_LOOP_COUNT; i++)
{
/* Create source data */
const size_t src_len= rand() % 1000 + 1;