Fix for broken unit tests from the previous commit.
authorTim King <taking@cs.nyu.edu>
Mon, 2 Apr 2012 22:49:39 +0000 (22:49 +0000)
committerTim King <taking@cs.nyu.edu>
Mon, 2 Apr 2012 22:49:39 +0000 (22:49 +0000)
test/unit/context/cdlist_black.h
test/unit/context/cdmap_black.h

index ccdbb210b82e1a6ef11df84d185be041c5f9024b..2e225871649f7a34128e91ef0104d9021b692c74 100644 (file)
@@ -57,12 +57,12 @@ public:
 
   // test at different sizes.  this triggers grow() behavior differently.
   // grow() was completely broken in revision 256
-  void testCDList_BE10() { listTest(10); }
-  void testCDList_BE15() { listTest(15); }
-  void testCDList_BE20() { listTest(20); }
-  void testCDList_BE35() { listTest(35); }
-  void testCDList_BE50() { listTest(50); }
-  void testCDList_BE99() { listTest(99); }
+  void testCDList10() { listTest(10); }
+  void testCDList15() { listTest(15); }
+  void testCDList20() { listTest(20); }
+  void testCDList35() { listTest(35); }
+  void testCDList50() { listTest(50); }
+  void testCDList99() { listTest(99); }
 
   void listTest(int N) {
     listTest(N, true);
@@ -70,7 +70,7 @@ public:
   }
 
   void listTest(int N, bool callDestructor) {
-    CDList_BE<int> list(d_context, callDestructor);
+    CDList<int> list(d_context, callDestructor);
 
     TS_ASSERT(list.empty());
     for(int i = 0; i < N; ++i) {
@@ -79,7 +79,7 @@ public:
       TS_ASSERT(!list.empty());
       TS_ASSERT_EQUALS(list.back(), i);
       int i2 = 0;
-      for(CDList_BE<int>::const_iterator j = list.begin();
+      for(CDList<int>::const_iterator j = list.begin();
           j != list.end();
           ++j) {
         TS_ASSERT_EQUALS(*j, i2++);
@@ -99,8 +99,8 @@ public:
     bool shouldAlsoRemainFalse = false;
     bool aThirdFalse = false;
 
-    CDList_BE<DtorSensitiveObject> listT(d_context, true);
-    CDList_BE<DtorSensitiveObject> listF(d_context, false);
+    CDList<DtorSensitiveObject> listT(d_context, true);
+    CDList<DtorSensitiveObject> listF(d_context, false);
 
     DtorSensitiveObject shouldRemainFalseDSO(shouldRemainFalse);
     DtorSensitiveObject shouldFlipToTrueDSO(shouldFlipToTrue);
@@ -136,7 +136,7 @@ public:
   }
 
   void testEmptyIterator() {
-    CDList_BE<int>* list = new(true) CDList_BE<int>(d_context);
+    CDList<int>* list = new(true) CDList<int>(d_context);
     TS_ASSERT_EQUALS(list->begin(), list->end());
     list->deleteSelf();
   }
@@ -149,7 +149,7 @@ public:
 
 #else /* __APPLE__ */
 
-    CDList_BE<unsigned> list(d_context);
+    CDList<unsigned> list(d_context);
     WithLimitedMemory wlm(1);
 
     TS_ASSERT_THROWS({
index 281d814aacfeff1fdab8f4688c7f8326e9d1d60e..0358d1edda24a3b1de72c296937df89922a75ae6 100644 (file)
@@ -933,9 +933,9 @@ public:
     //Debug.on("gc");
     //Debug.on("context");
 
-    CDHashMap<int, CDList_BE<myint>*, int_hasher> map(d_context);
+    CDHashMap<int, CDList<myint>*, int_hasher> map(d_context);
 
-    CDList_BE<myint> *list1, *list2, *list3, *list4;
+    CDList<myint> *list1, *list2, *list3, *list4;
 
     TS_ASSERT(map.find(1) == map.end());
     TS_ASSERT(map.find(2) == map.end());
@@ -947,10 +947,10 @@ public:
 
       int* x = (int*) d_context->getCMM()->newData(sizeof(int));
 
-      list1 = new(d_context->getCMM()) CDList_BE<myint>(true, d_context);
-      list2 = new(d_context->getCMM()) CDList_BE<myint>(true, d_context);
-      list3 = new(d_context->getCMM()) CDList_BE<myint>(true, d_context);
-      list4 = new(d_context->getCMM()) CDList_BE<myint>(true, d_context);
+      list1 = new(d_context->getCMM()) CDList<myint>(true, d_context);
+      list2 = new(d_context->getCMM()) CDList<myint>(true, d_context);
+      list3 = new(d_context->getCMM()) CDList<myint>(true, d_context);
+      list4 = new(d_context->getCMM()) CDList<myint>(true, d_context);
 
       list1->push_back(1);
       list2->push_back(2);