aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/core/test
diff options
context:
space:
mode:
authorGravatar rsgowman <rgowman@google.com>2018-03-12 16:35:40 -0400
committerGravatar GitHub <noreply@github.com>2018-03-12 16:35:40 -0400
commit3e41f2585cefaef1d37f76224cdd8e8908c529da (patch)
tree7c5e2e498d3a5c4062c7ae5d02fcf695fc2d263a /Firestore/core/test
parentf122cf7ce802972bd2fea45acac3deae2affcafa (diff)
Fix test failures that occur during prod build (#910)
* Fix ArraySortedMap.ChecksSize test (when NDEBUG is enabled) assert() is a noop when NDEBUG is defined (i.e. during production builds) so the size assertion check doesn't occur. Assuming we want this check even during prod use, I've switched assert to FIREBASE_ASSERT. * s/FIREBASE_ASSERT/FIREBASE_DEV_ASSERT/g in ordered_code.cc This keeps the behaviour in line with the original (which purposely differs if NDEBUG is defined or not.) Discovered due to the test suite (correctly) breaking during a prod build.
Diffstat (limited to 'Firestore/core/test')
-rw-r--r--Firestore/core/test/firebase/firestore/immutable/array_sorted_map_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Firestore/core/test/firebase/firestore/immutable/array_sorted_map_test.cc b/Firestore/core/test/firebase/firestore/immutable/array_sorted_map_test.cc
index 3ec1e64..260506b 100644
--- a/Firestore/core/test/firebase/firestore/immutable/array_sorted_map_test.cc
+++ b/Firestore/core/test/firebase/firestore/immutable/array_sorted_map_test.cc
@@ -244,7 +244,7 @@ TEST(ArraySortedMap, ChecksSize) {
map = map.insert(5, 10);
int next = kFixedSize;
- ASSERT_DEATH_IF_SUPPORTED(map.insert(next, next), "new_size <= fixed_size");
+ ASSERT_ANY_THROW(map.insert(next, next));
}
TEST(ArraySortedMap, Empty) {