summaryrefslogtreecommitdiff
path: root/xdelta3/testing/test.h
diff options
context:
space:
mode:
authorjosh.macdonald <jmacd@users.noreply.github.com>2008-07-09 06:56:30 +0000
committerjosh.macdonald <jmacd@users.noreply.github.com>2008-07-09 06:56:30 +0000
commitbd594c150533173d0340df8204824c9d6f00966b (patch)
treea56e040c0b7e1cf13062401e06ed2c40049c5f41 /xdelta3/testing/test.h
parentd0c5ff7a1847558a9264d9485e336f549b66dd38 (diff)
Attempting to reproduce the non-blocking bug which caused an
infinite loop due to hash collision in a recently reported issue. Having trouble, but this refactoring allows Segment to use fixed data.
Diffstat (limited to 'xdelta3/testing/test.h')
-rw-r--r--xdelta3/testing/test.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/xdelta3/testing/test.h b/xdelta3/testing/test.h
index c7d80aa..968b8ca 100644
--- a/xdelta3/testing/test.h
+++ b/xdelta3/testing/test.h
@@ -31,11 +31,15 @@ do {if (!((x) OP (y))) { \
31#include <iostream> 31#include <iostream>
32using std::cerr; 32using std::cerr;
33using std::endl; 33using std::endl;
34using std::ostream;
34 35
35#include <map> 36#include <map>
36using std::map; 37using std::map;
37using std::pair; 38using std::pair;
38 39
40#include <ext/hash_map>
41using __gnu_cxx::hash_map;
42
39#include <list> 43#include <list>
40using std::list; 44using std::list;
41 45
@@ -51,10 +55,12 @@ public:
51 55
52using std::min; 56using std::min;
53 57
54#include "segment.h"
55
56#include "random.h" 58#include "random.h"
57using regtest::MTRandom; 59using regtest::MTRandom;
60using regtest::MTRandom8;
61
62#include "segment.h"
63using regtest::Segment;
58 64
59#include "modify.h" 65#include "modify.h"
60using regtest::Mutator; 66using regtest::Mutator;