1. 23 Mar, 2018 2 commits
    • odb: fix writing to fake write streams · a52b4c51
      In commit 7ec7aa4a (odb: assert on logic errors when writing objects,
      2018-02-01), the check for whether we are trying to overflowing the fake
      stream buffer was changed from returning an error to raising an assert.
      The conversion forgot though that the logic around `assert`s are
      basically inverted. Previously, if the statement
      
          stream->written + len > steram->size
      
      evaluated to true, we would return a `-1`. Now we are asserting that
      this statement is true, and in case it is not we will raise an error. So
      the conversion to the `assert` in fact changed the behaviour to the
      complete opposite intention.
      
      Fix the assert by inverting its condition again and add a regression
      test.
      Patrick Steinhardt committed
    • tests: add tests for the mempack ODB backend · 904307af
      Our mempack ODB backend has no test coverage at all right now. Add a
      simple test suite to at least have some coverage of the most basic
      operations on the ODB.
      Patrick Steinhardt committed