diff options
| author | Jonathan Nieder <jrnieder@gmail.com> | 2011-05-26 02:12:14 -0500 |
|---|---|---|
| committer | Jonathan Nieder <jrnieder@gmail.com> | 2011-05-26 02:12:14 -0500 |
| commit | c19d653c4fcdc93169507c09f8f66ebffbdbb9a5 (patch) | |
| tree | a35ddef2950330a0ac88f0c467080ea32e751831 /test-string-pool.c | |
| parent | Merge branch 'db/vcs-svn-incremental' into svn-fe (diff) | |
| parent | vcs-svn: drop obj_pool (diff) | |
| download | git-c19d653c4fcdc93169507c09f8f66ebffbdbb9a5.tar.gz git-c19d653c4fcdc93169507c09f8f66ebffbdbb9a5.zip | |
Merge branch 'db/svn-fe-code-purge' into svn-fe
* db/svn-fe-code-purge:
vcs-svn: drop obj_pool
vcs-svn: drop treap
vcs-svn: drop string_pool
vcs-svn: pass paths through to fast-import
Conflicts:
vcs-svn/fast_export.c
vcs-svn/fast_export.h
vcs-svn/repo_tree.c
vcs-svn/repo_tree.h
vcs-svn/string_pool.c
vcs-svn/svndump.c
vcs-svn/trp.txt
Diffstat (limited to 'test-string-pool.c')
| -rw-r--r-- | test-string-pool.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/test-string-pool.c b/test-string-pool.c deleted file mode 100644 index c5782e6bce..0000000000 --- a/test-string-pool.c +++ /dev/null @@ -1,31 +0,0 @@ -/* - * test-string-pool.c: code to exercise the svn importer's string pool - */ - -#include "git-compat-util.h" -#include "vcs-svn/string_pool.h" - -int main(int argc, char *argv[]) -{ - const uint32_t unequal = pool_intern("does not equal"); - const uint32_t equal = pool_intern("equals"); - uint32_t buf[3]; - uint32_t n; - - if (argc != 2) - usage("test-string-pool <string>,<string>"); - - n = pool_tok_seq(3, buf, ",-", argv[1]); - if (n >= 3) - die("too many strings"); - if (n <= 1) - die("too few strings"); - - buf[2] = buf[1]; - buf[1] = (buf[0] == buf[2]) ? equal : unequal; - pool_print_seq(3, buf, ' ', stdout); - fputc('\n', stdout); - - pool_reset(); - return 0; -} |
