diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2019-03-18 19:25:11 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2019-03-18 19:25:11 +0100 |
commit | 5560ea612c55de1fc50009451fcbb1939d915c68 (patch) | |
tree | 6685dd84fef9d8f145a8b3cc337c7687a808f384 /searchlib/src/tests | |
parent | 5ace7c14988519d8c377c80763c6440d537788a7 (diff) |
Followup on using size_t in datastore and buffer code.
Diffstat (limited to 'searchlib/src/tests')
-rw-r--r-- | searchlib/src/tests/memoryindex/datastore/featurestore_test.cpp | 8 | ||||
-rw-r--r-- | searchlib/src/tests/memoryindex/dictionary/dictionary_test.cpp | 12 |
2 files changed, 10 insertions, 10 deletions
diff --git a/searchlib/src/tests/memoryindex/datastore/featurestore_test.cpp b/searchlib/src/tests/memoryindex/datastore/featurestore_test.cpp index e62cf931be1..dc061f55732 100644 --- a/searchlib/src/tests/memoryindex/datastore/featurestore_test.cpp +++ b/searchlib/src/tests/memoryindex/datastore/featurestore_test.cpp @@ -102,7 +102,7 @@ Test::requireThatFeaturesCanBeAddedAndRetrieved() FeatureStore::RefType(r1).offset()); EXPECT_EQUAL(0u, FeatureStore::RefType(r1).bufferId()); LOG(info, - "bits(%" PRIu64 "), ref.offset(%" PRIu64 "), ref.bufferId(%u)", + "bits(%" PRIu64 "), ref.offset(%zu), ref.bufferId(%u)", r.second, FeatureStore::RefType(r1).offset(), FeatureStore::RefType(r1).bufferId()); @@ -119,7 +119,7 @@ Test::requireThatFeaturesCanBeAddedAndRetrieved() FeatureStore::RefType(r1).offset()); EXPECT_EQUAL(0u, FeatureStore::RefType(r1).bufferId()); LOG(info, - "bits(%" PRIu64 "), ref.offset(%" PRIu64 "), ref.bufferId(%u)", + "bits(%" PRIu64 "), ref.offset(%zu), ref.bufferId(%u)", r.second, FeatureStore::RefType(r2).offset(), FeatureStore::RefType(r2).bufferId()); @@ -146,7 +146,7 @@ Test::requireThatNextWordsAreWorking() FeatureStore::RefType(r1).offset()); EXPECT_EQUAL(0u, FeatureStore::RefType(r1).bufferId()); LOG(info, - "bits(%" PRIu64 "), ref.offset(%" PRIu64 "), ref.bufferId(%u)", + "bits(%" PRIu64 "), ref.offset(%zu), ref.bufferId(%u)", r.second, FeatureStore::RefType(r1).offset(), FeatureStore::RefType(r1).bufferId()); @@ -163,7 +163,7 @@ Test::requireThatNextWordsAreWorking() FeatureStore::RefType(r1).offset()); EXPECT_EQUAL(0u, FeatureStore::RefType(r1).bufferId()); LOG(info, - "bits(%" PRIu64 "), ref.offset(%" PRIu64 "), ref.bufferId(%u)", + "bits(%" PRIu64 "), ref.offset(%zu), ref.bufferId(%u)", r.second, FeatureStore::RefType(r2).offset(), FeatureStore::RefType(r2).bufferId()); diff --git a/searchlib/src/tests/memoryindex/dictionary/dictionary_test.cpp b/searchlib/src/tests/memoryindex/dictionary/dictionary_test.cpp index c461fe32d77..2c4fdc35ac6 100644 --- a/searchlib/src/tests/memoryindex/dictionary/dictionary_test.cpp +++ b/searchlib/src/tests/memoryindex/dictionary/dictionary_test.cpp @@ -1013,8 +1013,8 @@ TEST_F("requireThatInversionIsWorking", DictionaryFixture<Fixture>) f._pushThreads.sync(); DataStoreBase::MemStats beforeStats = getFeatureStoreMemStats(f._d); LOG(info, - "Before feature compaction: allocElems=%" PRIu64 ", usedElems=%" PRIu64 - ", deadElems=%" PRIu64 ", holdElems=%" PRIu64 + "Before feature compaction: allocElems=%zu, usedElems=%zu" + ", deadElems=%zu, holdElems=%zu" ", freeBuffers=%u, activeBuffers=%u" ", holdBuffers=%u", beforeStats._allocElems, @@ -1033,8 +1033,8 @@ TEST_F("requireThatInversionIsWorking", DictionaryFixture<Fixture>) myCommit(f._d, f._pushThreads); DataStoreBase::MemStats duringStats = getFeatureStoreMemStats(f._d); LOG(info, - "During feature compaction: allocElems=%" PRIu64 ", usedElems=%" PRIu64 - ", deadElems=%" PRIu64 ", holdElems=%" PRIu64 + "During feature compaction: allocElems=%zu, usedElems=%zu" + ", deadElems=%zu, holdElems=%zu" ", freeBuffers=%u, activeBuffers=%u" ", holdBuffers=%u", duringStats._allocElems, @@ -1048,8 +1048,8 @@ TEST_F("requireThatInversionIsWorking", DictionaryFixture<Fixture>) myCommit(f._d, f._pushThreads); DataStoreBase::MemStats afterStats = getFeatureStoreMemStats(f._d); LOG(info, - "After feature compaction: allocElems=%" PRIu64 ", usedElems=%" PRIu64 - ", deadElems=%" PRIu64 ", holdElems=%" PRIu64 + "After feature compaction: allocElems=%zu, usedElems=%zu" + ", deadElems=%zu, holdElems=%zu" ", freeBuffers=%u, activeBuffers=%u" ", holdBuffers=%u", afterStats._allocElems, |