tests: optimize buffer sizes

This commit is contained in:
Thomas Bernard 2020-05-05 22:18:41 +02:00
parent eafa5b913c
commit 080f9ba921
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C
2 changed files with 3 additions and 3 deletions

View File

@ -51,8 +51,8 @@ unsigned int MOTO_MAP_pack(byte * packed, const byte * unpacked, unsigned int un
int Test_MOTO_MAP_pack(char * errmsg)
{
unsigned int i, j;
byte buffer[1024];
byte buffer2[1024];
byte buffer[256];
byte buffer2[256];
unsigned int packed_len, unpacked_len, original_len;
static const char * tests[] = {
"12345AAAAAAA@", // best : 00 05 "12345" 07 'A' 01 '@' : 11

View File

@ -22,7 +22,7 @@
#ifndef TESTS_H_INCLUDED
#define TESTS_H_INCLUDED
#define ERRMSG_LENGTH (256)
#define ERRMSG_LENGTH (512)
#define TEST(func) int Test_ ## func (char *);
#include "testlist.h"