<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -16,11 +16,14 @@ ext_task :thin_backend
 ragel_task 'ext/thin_backend', 'parser.rl', 'parser.c'
 
 task :test do
-  cd 'test' do
-    sh 'make test'
-  end
+  cd('test') { sh 'make test' }
 end
 
+task 'test:clean' do
+  cd('test') { sh 'make clean' }
+end
+task :clean =&gt; 'test:clean'
+
 Spec::Rake::SpecTask.new(:spec) do |t|
   t.spec_opts = %w(-fs -c)
   t.spec_files = FileList['spec/**/*_spec.rb']</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -6,7 +6,7 @@ void buffer_init(buffer_t *buf)
 {
   buf-&gt;ptr         = palloc(buffer_pool(), 1);
   buf-&gt;nalloc      = 1;
-  buf-&gt;salloc      = 0;
+  buf-&gt;salloc      = BUFFER_CHUNK_SIZE;
   buf-&gt;len         = 0;
   buf-&gt;offset      = 0;
   buf-&gt;file.fd     = -1;</diff>
      <filename>ext/thin_backend/buffer.c</filename>
    </modified>
    <modified>
      <diff>@@ -5,24 +5,19 @@ test_init();
 
 void test_buffer_init(void)
 {
-  pool_t   *p = pool_create(10, 512);
   buffer_t  b;
   
-  buffer_init(&amp;b, p);
+  buffer_init(&amp;b);
   
-  assert_equal(p, b.pool);
   assert_equal(1, b.nalloc);
-  assert_equal(512, b.salloc);
-  
-  pool_destroy(p);
+  assert_equal(BUFFER_CHUNK_SIZE, b.salloc);
 }
 
 void test_buffer_append(void)
 {
-  pool_t   *p = pool_create(10, 1024);
   buffer_t  b;
   
-  buffer_init(&amp;b, p);
+  buffer_init(&amp;b);
   
   buffer_append(&amp;b, &quot;hi&quot;, 2);
   assert_str_equal(&quot;hi&quot;, b.ptr);
@@ -31,16 +26,13 @@ void test_buffer_append(void)
   assert_str_equal(&quot;hi you&quot;, b.ptr);
   assert_equal(6, b.len);
   assert_equal(1, b.nalloc);
-  
-  pool_destroy(p);
 }
 
 void test_buffer_grow_and_append(void)
 {
-  pool_t   *p = pool_create(10, 2);
   buffer_t  b;
   
-  buffer_init(&amp;b, p);
+  buffer_init(&amp;b);
   
   buffer_append(&amp;b, &quot;hi&quot;, 2);
   assert_equal(1, b.nalloc);
@@ -57,19 +49,14 @@ void test_buffer_grow_and_append(void)
   assert_equal(8, b.salloc);
 
   assert_str_equal(&quot;hi you ! &quot;, b.ptr);
-  
-  pool_destroy(p);
 }
 
-void test_buffer_free(void)
+void test_buffer_reset(void)
 {
-  pool_t   *p = pool_create(10, 2);
-  buffer_t  b;
-  
-  buffer_init(&amp;b, p);
-  buffer_free(&amp;b);
+  buffer_t b;
   
-  pool_destroy(p);
+  buffer_init(&amp;b);
+  buffer_reset(&amp;b);
 }
 
 int main(int argc, char const *argv[])
@@ -79,7 +66,7 @@ int main(int argc, char const *argv[])
   test_buffer_init();
   test_buffer_append();
   test_buffer_grow_and_append();
-  test_buffer_free();
+  test_buffer_reset();
   
   test_end();
 }
\ No newline at end of file</diff>
      <filename>test/buffer_test.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>283ca929a6bebdf975fdda9291964a432af96f6d</id>
    </parent>
  </parents>
  <author>
    <name>macournoyer</name>
    <email>macournoyer@gmail.com</email>
  </author>
  <url>http://github.com/macournoyer/thin-turbo/commit/f9b793e44e042879c4636df031f9edbb80ebbc5e</url>
  <id>f9b793e44e042879c4636df031f9edbb80ebbc5e</id>
  <committed-date>2008-04-26T20:47:12-07:00</committed-date>
  <authored-date>2008-04-26T20:47:12-07:00</authored-date>
  <message>Fix a couple buffer_test failures</message>
  <tree>7031aac7969f136c50ae7e3eda1221f373563a28</tree>
  <committer>
    <name>macournoyer</name>
    <email>macournoyer@gmail.com</email>
  </committer>
</commit>
