mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
base64-t.c:
Calculate and output line count first to be compatible with older versions of Test::Harness
This commit is contained in:

parent
6966fa0c21
commit
b7f0778e82
@@ -18,13 +18,18 @@
|
|||||||
#include <tap.h>
|
#include <tap.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#define BASE64_LOOP_COUNT 500
|
||||||
|
#define BASE64_ROWS 4 /* Number of ok(..) */
|
||||||
|
|
||||||
int
|
int
|
||||||
main(void)
|
main(void)
|
||||||
{
|
{
|
||||||
int i, cmp;
|
int i, cmp;
|
||||||
size_t j, k, l, dst_len, needed_length;
|
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 */
|
/* Create source data */
|
||||||
const size_t src_len= rand() % 1000 + 1;
|
const size_t src_len= rand() % 1000 + 1;
|
||||||
|
Reference in New Issue
Block a user