1. 30 Nov, 2011 6 commits
    • Rusty Russell's avatar
      tdb2: add a capability list from the header. · 35f198de
      Rusty Russell authored
      This allows even more extensibility in future: in particular, the top
      bits of each capability tell us what to do if we don't understand it:
      fail the open, fail to open for write, or don't try to check the
      format.
      
      tdb_check needs to understand the capability list so it can know to
      skip over it: each element in the list is prefixed with the type tag
      and the length.
      35f198de
    • Rusty Russell's avatar
    • Rusty Russell's avatar
      tdb2: add an internal TDB_CANT_CHECK flag. · e01d795c
      Rusty Russell authored
      This will be used shortly to indicate that a TDB2 file indicates it
      cannot be checked.
      e01d795c
    • Rusty Russell's avatar
      failtest: do trace via a FILE, not an fd. · b3ae79ae
      Rusty Russell authored
      The current mix of writing to an fd doesn't mix as well with
      stderr/stdout.  And writing to a FILE * is more portable.
      b3ae79ae
    • Rusty Russell's avatar
      failtest: add --trace to replace --tracepath · 614259f1
      Rusty Russell authored
      This gives a much deeper insight into what failtest is doing; good for
      debugging failtest itself.
      614259f1
    • Rusty Russell's avatar
      failtest: save and restore file state inside child (on-demand) · 67bbee53
      Rusty Russell authored
      We currently save all files in the parent, and restore them once
      the child is gone.  That doesn't work in a case where the child
      manipulates a file the parent doesn't currently have open, so
      switch to a model where the child cleans itself up, using the
      already-existing cleanup callbacks.
      
      This means that we need to undo much more, especially restoring
      file offsets.  We also need to handle the case where we've already
      closed the file, and now we're cleaning up.  As a bonus, we now
      handle open() with O_TRUNC properly.
      
      The cleanup function now has two modes: one simply frees (so valgrind
      doesn't complain about failtest leaking so the user can see real leaks
      in their programs), the other restores things so the parent sees no
      changes.
      67bbee53
  2. 29 Nov, 2011 20 commits
  3. 23 Nov, 2011 2 commits
  4. 21 Nov, 2011 2 commits
  5. 16 Nov, 2011 1 commit
  6. 15 Nov, 2011 2 commits
    • Rusty Russell's avatar
      ccanlint: make fewer tests compulsory. · 441a3cb1
      Rusty Russell authored
      Compulsory means "malformed", we might get rid of it altogether, since
      any test can mark "fail" and make ccanlint exit with non-zero status.
      
      Now we only have four compulsory tests:
         info_exists               Module has _info file
         depends_exist             Module's CCAN dependencies can be found
         objects_build             Module object files can be built
         module_builds             Module can be built from object files
      441a3cb1
    • Rusty Russell's avatar
      ccanlint: fix ccanlint -l · c5940717
      Rusty Russell authored
      c5940717
  7. 01 Nov, 2011 5 commits
  8. 26 Oct, 2011 2 commits