diff options
author | Tor Egge <Tor.Egge@verizonmedia.com> | 2021-02-27 15:20:17 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@verizonmedia.com> | 2021-02-27 16:52:30 +0100 |
commit | 5ab5c55c28b344519a54f9f1f891df6b2a730354 (patch) | |
tree | 5d9a59bc66644bb9113b64efd4da02f330cb591d /vespalib | |
parent | e17e004683b266f26872e96dfbce2c9713e1d28d (diff) |
Account for different memory usage with libc++.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/tests/datastore/array_store/array_store_test.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vespalib/src/tests/datastore/array_store/array_store_test.cpp b/vespalib/src/tests/datastore/array_store/array_store_test.cpp index bf2ca9629c2..a1e7140fefe 100644 --- a/vespalib/src/tests/datastore/array_store/array_store_test.cpp +++ b/vespalib/src/tests/datastore/array_store/array_store_test.cpp @@ -149,8 +149,13 @@ TEST("require that we test with trivial and non-trivial types") } TEST_F("control static sizes", NumberFixture(3)) { +#ifdef _LIBCPP_VERSION + EXPECT_EQUAL(392u, sizeof(f.store)); + EXPECT_EQUAL(296u, sizeof(NumberFixture::ArrayStoreType::DataStoreType)); +#else EXPECT_EQUAL(424u, sizeof(f.store)); EXPECT_EQUAL(328u, sizeof(NumberFixture::ArrayStoreType::DataStoreType)); +#endif EXPECT_EQUAL(64u, sizeof(NumberFixture::ArrayStoreType::SmallArrayType)); MemoryUsage usage = f.store.getMemoryUsage(); EXPECT_EQUAL(960u, usage.allocatedBytes()); |