summaryrefslogtreecommitdiff
path: root/t/t0080-vcs-svn.sh
diff options
context:
space:
mode:
authorDavid Barr <david.barr@cordelta.com>2010-12-13 10:26:43 (GMT)
committerJonathan Nieder <jrnieder@gmail.com>2011-03-22 23:39:53 (GMT)
commitcba3546a43c64e2078664dbb6469aadf6bc473d3 (patch)
treecbd4ef1bcbaae1b091d5d5110a7da6273cb0cb8a /t/t0080-vcs-svn.sh
parent5db348dbd51cdeac711521d1fa7258785e72d202 (diff)
downloadgit-cba3546a43c64e2078664dbb6469aadf6bc473d3.zip
git-cba3546a43c64e2078664dbb6469aadf6bc473d3.tar.gz
git-cba3546a43c64e2078664dbb6469aadf6bc473d3.tar.bz2
vcs-svn: drop obj_pool
This reverts commit 4709455db3891f6cad9a96a574296b4926f70cbe (Add memory pool library, 2010-08-09). svn-fe uses strbufs to avoid memory allocation overhead nowadays. Signed-off-by: David Barr <david.barr@cordelta.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Diffstat (limited to 't/t0080-vcs-svn.sh')
-rwxr-xr-xt/t0080-vcs-svn.sh79
1 files changed, 0 insertions, 79 deletions
diff --git a/t/t0080-vcs-svn.sh b/t/t0080-vcs-svn.sh
deleted file mode 100755
index 3f29496..0000000
--- a/t/t0080-vcs-svn.sh
+++ /dev/null
@@ -1,79 +0,0 @@
-#!/bin/sh
-
-test_description='check infrastructure for svn importer'
-
-. ./test-lib.sh
-uint32_max=4294967295
-
-test_expect_success 'obj pool: store data' '
- cat <<-\EOF >expected &&
- 0
- 1
- EOF
-
- test-obj-pool <<-\EOF >actual &&
- alloc one 16
- set one 13
- test one 13
- reset one
- EOF
- test_cmp expected actual
-'
-
-test_expect_success 'obj pool: NULL is offset ~0' '
- echo "$uint32_max" >expected &&
- echo null one | test-obj-pool >actual &&
- test_cmp expected actual
-'
-
-test_expect_success 'obj pool: out-of-bounds access' '
- cat <<-EOF >expected &&
- 0
- 0
- $uint32_max
- $uint32_max
- 16
- 20
- $uint32_max
- EOF
-
- test-obj-pool <<-\EOF >actual &&
- alloc one 16
- alloc two 16
- offset one 20
- offset two 20
- alloc one 5
- offset one 20
- free one 1
- offset one 20
- reset one
- reset two
- EOF
- test_cmp expected actual
-'
-
-test_expect_success 'obj pool: high-water mark' '
- cat <<-\EOF >expected &&
- 0
- 0
- 10
- 20
- 20
- 20
- EOF
-
- test-obj-pool <<-\EOF >actual &&
- alloc one 10
- committed one
- alloc one 10
- commit one
- committed one
- alloc one 10
- free one 20
- committed one
- reset one
- EOF
- test_cmp expected actual
-'
-
-test_done