diff options
author | josh.macdonald <jmacd@users.noreply.github.com> | 2008-08-09 15:24:05 +0000 |
---|---|---|
committer | josh.macdonald <jmacd@users.noreply.github.com> | 2008-08-09 15:24:05 +0000 |
commit | 3f6c6bfbaf34894a6e879a39bd66491525fd552c (patch) | |
tree | 1428a6bd9fd38e9e180c14fd65dad5e85ec7bc3f /xdelta3/testing/test.h | |
parent | 0cece8d64b78073424d481e5b9f788c6f886ed44 (diff) |
Merge test actually finding problems now.
Diffstat (limited to 'xdelta3/testing/test.h')
-rw-r--r-- | xdelta3/testing/test.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/xdelta3/testing/test.h b/xdelta3/testing/test.h index 8055dd4..30d147f 100644 --- a/xdelta3/testing/test.h +++ b/xdelta3/testing/test.h | |||
@@ -34,6 +34,18 @@ extern "C" { | |||
34 | #include <string> | 34 | #include <string> |
35 | using std::string; | 35 | using std::string; |
36 | 36 | ||
37 | #include <vector> | ||
38 | using std::vector; | ||
39 | |||
40 | inline string CommandToString(const vector<const char*> &v) { | ||
41 | string s(v[0]); | ||
42 | for (size_t i = 1; i < v.size() && v[i] != NULL; i++) { | ||
43 | s.append(" "); | ||
44 | s.append(v[i]); | ||
45 | } | ||
46 | return s; | ||
47 | } | ||
48 | |||
37 | #include <iostream> | 49 | #include <iostream> |
38 | using std::cerr; | 50 | using std::cerr; |
39 | using std::endl; | 51 | using std::endl; |