Permalink
Browse files

Don't loop tests over 10000 times.

  • Loading branch information...
1 parent 4109fc6 commit f138d9daf5dedcb06ec82687f6520dfd49469791 Caleb James DeLisle committed Feb 22, 2013
@@ -65,12 +65,10 @@ int main()
{
char out[512];
struct Allocator* alloc = CanaryAllocator_new(MallocAllocator_new(1<<20), NULL);
- for (int i = 0; i < 10000; i++) {
struct Writer* writer = ArrayWriter_new(out, 512, alloc);
struct Reader* reader = ArrayReader_new(out, 512, alloc);
testSerialize(writer, reader);
testParse(writer, reader, alloc);
- }
Allocator_free(alloc);
}
@@ -24,7 +24,7 @@ int main()
struct Allocator* alloc = CanaryAllocator_new(MallocAllocator_new(1<<20), NULL);
struct Random* rand = Random_new(alloc, NULL, NULL);
- for (int cycles = 0; cycles < 10000; cycles++) {
+ for (int cycles = 0; cycles < 1; cycles++) {
for (int bytes = 1; bytes < 5; bytes++) {
uint32_t count = Random_uint32(rand) % 30;
uint32_t max = Random_uint32(rand) % UINT32_MAX >> ((4-bytes) * 8);

0 comments on commit f138d9d

Please sign in to comment.