mirror of
https://github.com/MariaDB/server.git
synced 2026-04-20 23:35:32 +02:00
base64-t.c:
Calculate and output line count first to be compatible with older versions of Test::Harness unittest/mysys/base64-t.c: Calculate and output line count first to be compatible with older versions of Test::Harness
This commit is contained in:
parent
aee40414bd
commit
f68789007f
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue