]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Summary: Update test scripts.
authorrobertc <>
Mon, 22 Sep 2003 08:43:11 +0000 (08:43 +0000)
committerrobertc <>
Mon, 22 Sep 2003 08:43:11 +0000 (08:43 +0000)
Keywords:

Update test scripts for minor bitrot.
Make mem_hdr_test scricter on memory use.

test-suite/http_range_test.cc
test-suite/mem_hdr_test.cc

index 28ea58a22b33d69afb09f5486ff0f42a00357242..0bc494542e8bb422ed7689bd4d03d34dc7102912 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: http_range_test.cc,v 1.10 2003/08/14 22:27:39 robertc Exp $
+ * $Id: http_range_test.cc,v 1.11 2003/09/22 02:43:11 robertc Exp $
  *
  * DEBUG: section 64    HTTP Range Header
  * AUTHOR: Alex Rousskov
@@ -99,7 +99,8 @@ SQUIDCEXTERN HttpHeaderEntry *httpHeaderGetEntry(const HttpHeader * hdr, HttpHea
     return NULL;
 }
 
-int aclCheckFast(const acl_access *A, ACLChecklist *)
+int
+ACLChecklist::fastCheck()
 {
     fatal ("dummy function\n");
     return 0;
index c644123cdc53f6c7ee04d20b2cffb24551acce11..1388d0a8967a0a8c2c3588f8bbee418deb45069c 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: mem_hdr_test.cc,v 1.2 2003/06/26 12:52:00 robertc Exp $
+ * $Id: mem_hdr_test.cc,v 1.3 2003/09/22 02:43:11 robertc Exp $
  *
  * DEBUG: section 19    Store Memory Primitives
  * AUTHOR: Robert Collins
@@ -85,18 +85,22 @@ testSplayOfNodes()
     temp14 = new mem_node (14);
     temp14->nodeBuffer.length = 1;
     assert (aSplay.find(temp14,mem_hdr::NodeCompare));
+    delete temp14;
 
     mem_node ref13  (13);
     assert (!aSplay.find(&ref13,mem_hdr::NodeCompare));
     ref13.nodeBuffer.length = 1;
     assert (aSplay.find(&ref13,mem_hdr::NodeCompare));
+    aSplay.destroy(SplayNode<mem_node *>::DefaultFree);
 }
 
 int
 main (int argc, char *argv)
 {
+    assert (mem_node::InUseCount() == 0);
     testLowAndHigh();
     assert (mem_node::InUseCount() == 0);
     testSplayOfNodes();
+    assert (mem_node::InUseCount() == 0);
     return 0;
 }