Refactors map test case
authorPeizhao Ou <peizhaoo@uci.edu>
Tue, 30 Jan 2018 09:05:09 +0000 (01:05 -0800)
committerPeizhao Ou <peizhaoo@uci.edu>
Tue, 30 Jan 2018 09:05:09 +0000 (01:05 -0800)
test/stress/sequential/sequential-map/insdelfind/map_insdelfind.h

index 165a1d1..4a83053 100644 (file)
@@ -207,8 +207,8 @@ namespace map {
         template <class Map>
         void run_test()
         {
-            Map testMap( *this );
-            do_test( testMap );
+          std::unique_ptr<Map> testMap(new Map(*this));
+          do_test(*testMap);
         }
 
         template <class Map>