Commit Graph

2 Commits

Author SHA1 Message Date
Wyatt Hepler
0af6ad9365 pw_kvs: Use key's current state in RelocateEntry
When moving tombstone entries for deleted keys, RelocateEntry would
cause them to become present again.

Expand key_value_store_map_test.cc and add a test that covers this case
specifically.

Change-Id: I846cb155bffb25198377e04752cace971555d32b
2020-02-14 00:50:52 +00:00
Wyatt Hepler
495b6ee5ce pw_kvs: Map-backed tests
Introduce a system for writing tests against flash memories with
different parameters. The tests use a std::unordered_map as an oracle,
and all operations are checked against it. Invalid inputs and the KVS
filling up are handled.

Disable most of the tests because they are currently failing.

Change-Id: Ib817e30a199c81b3146823252be91e0db016c9b3
2020-02-13 21:50:30 +00:00