Commit 18a2bc79 authored by condy's avatar condy Committed by Facebook GitHub Bot

Reset the counters to make repeated tests pass (#1556)

Summary: Pull Request resolved: https://github.com/facebook/folly/pull/1556

Reviewed By: Orvid

Differential Revision: D27672765

Pulled By: yfeldblum

fbshipit-source-id: edcf9b300c737799399096a8dbc401b3ab49b88c
parent c598d4d1
...@@ -166,6 +166,9 @@ TYPED_TEST_P(ConcurrentHashMapTest, EmplaceTest) { ...@@ -166,6 +166,9 @@ TYPED_TEST_P(ConcurrentHashMapTest, EmplaceTest) {
foomap.emplace(1, foo()); foomap.emplace(1, foo());
EXPECT_EQ(foo::moved, 1); EXPECT_EQ(foo::moved, 1);
EXPECT_EQ(foo::copied, 0); EXPECT_EQ(foo::copied, 0);
// Reset the counters. Repeated tests are allowed
foo::moved = 0;
foo::copied = 0;
} }
TYPED_TEST_P(ConcurrentHashMapTest, MapInsertIteratorValueTest) { TYPED_TEST_P(ConcurrentHashMapTest, MapInsertIteratorValueTest) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment