tests: optimize buffer sizes
This commit is contained in:
		
							parent
							
								
									eafa5b913c
								
							
						
					
					
						commit
						080f9ba921
					
				@ -51,8 +51,8 @@ unsigned int MOTO_MAP_pack(byte * packed, const byte * unpacked, unsigned int un
 | 
				
			|||||||
int Test_MOTO_MAP_pack(char * errmsg)
 | 
					int Test_MOTO_MAP_pack(char * errmsg)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  unsigned int i, j;
 | 
					  unsigned int i, j;
 | 
				
			||||||
  byte buffer[1024];
 | 
					  byte buffer[256];
 | 
				
			||||||
  byte buffer2[1024];
 | 
					  byte buffer2[256];
 | 
				
			||||||
  unsigned int packed_len, unpacked_len, original_len;
 | 
					  unsigned int packed_len, unpacked_len, original_len;
 | 
				
			||||||
  static const char * tests[] = {
 | 
					  static const char * tests[] = {
 | 
				
			||||||
    "12345AAAAAAA@",    // best : 00 05 "12345" 07 'A' 01 '@' : 11
 | 
					    "12345AAAAAAA@",    // best : 00 05 "12345" 07 'A' 01 '@' : 11
 | 
				
			||||||
 | 
				
			|||||||
@ -22,7 +22,7 @@
 | 
				
			|||||||
#ifndef TESTS_H_INCLUDED
 | 
					#ifndef TESTS_H_INCLUDED
 | 
				
			||||||
#define TESTS_H_INCLUDED
 | 
					#define TESTS_H_INCLUDED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define ERRMSG_LENGTH (256)
 | 
					#define ERRMSG_LENGTH (512)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define TEST(func) int Test_ ## func (char *);
 | 
					#define TEST(func) int Test_ ## func (char *);
 | 
				
			||||||
#include "testlist.h"
 | 
					#include "testlist.h"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user