summaryrefslogtreecommitdiff
path: root/test/support/container_test_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/support/container_test_types.h')
-rw-r--r--test/support/container_test_types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/support/container_test_types.h b/test/support/container_test_types.h
index b8422ec46..1c4625b9f 100644
--- a/test/support/container_test_types.h
+++ b/test/support/container_test_types.h
@@ -167,8 +167,10 @@ struct AllocatorConstructController {
// Return true if the construction was expected and false otherwise.
// This should only be called by 'Allocator.construct'.
bool check(detail::TypeID const& tid) {
- if (!m_expected_args)
+ if (!m_expected_args) {
assert(m_allow_unchecked);
+ return m_allow_unchecked;
+ }
bool res = *m_expected_args == tid;
if (m_expected_count == -1 || --m_expected_count == -1)
m_expected_args = nullptr;