diff options
author | josh.macdonald <jmacd@users.noreply.github.com> | 2008-07-09 06:56:30 +0000 |
---|---|---|
committer | josh.macdonald <jmacd@users.noreply.github.com> | 2008-07-09 06:56:30 +0000 |
commit | bd594c150533173d0340df8204824c9d6f00966b (patch) | |
tree | a56e040c0b7e1cf13062401e06ed2c40049c5f41 /xdelta3/testing/test.h | |
parent | d0c5ff7a1847558a9264d9485e336f549b66dd38 (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.h | 10 |
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> |
32 | using std::cerr; | 32 | using std::cerr; |
33 | using std::endl; | 33 | using std::endl; |
34 | using std::ostream; | ||
34 | 35 | ||
35 | #include <map> | 36 | #include <map> |
36 | using std::map; | 37 | using std::map; |
37 | using std::pair; | 38 | using std::pair; |
38 | 39 | ||
40 | #include <ext/hash_map> | ||
41 | using __gnu_cxx::hash_map; | ||
42 | |||
39 | #include <list> | 43 | #include <list> |
40 | using std::list; | 44 | using std::list; |
41 | 45 | ||
@@ -51,10 +55,12 @@ public: | |||
51 | 55 | ||
52 | using std::min; | 56 | using std::min; |
53 | 57 | ||
54 | #include "segment.h" | ||
55 | |||
56 | #include "random.h" | 58 | #include "random.h" |
57 | using regtest::MTRandom; | 59 | using regtest::MTRandom; |
60 | using regtest::MTRandom8; | ||
61 | |||
62 | #include "segment.h" | ||
63 | using regtest::Segment; | ||
58 | 64 | ||
59 | #include "modify.h" | 65 | #include "modify.h" |
60 | using regtest::Mutator; | 66 | using regtest::Mutator; |