Added internal statistics to MichaelSet/Map
[libcds.git] / test / unit / set / test_michael_lazy_rcu.h
index ffe1e1002d337bcb22b8f6a7e2c4e31455bfbdea..e5e99e03e261a9810e3a0e61ebb402943c57f5a5 100644 (file)
@@ -238,6 +238,7 @@ TYPED_TEST_P( MichaelLazySet, stat )
 
     set_type s( TestFixture::kSize, 4 );
     this->test( s );
+    EXPECT_GE( s.statistics().m_nInsertSuccess, 0 );
 }
 
 TYPED_TEST_P( MichaelLazySet, wrapped_stat )
@@ -262,6 +263,7 @@ TYPED_TEST_P( MichaelLazySet, wrapped_stat )
 
     set_type s( TestFixture::kSize, 4 );
     this->test( s );
+    EXPECT_GE( s.statistics().m_nInsertSuccess, 0 );
 }
 
 // GCC 5: All test names should be written on single line, otherwise a runtime error will be encountered like as