1. 02 Nov, 2016 2 commits
    • tests: core: test deinitialization and concurrent initialization · 1c33ecc4
      Exercise the logic surrounding deinitialization of the libgit2
      library as well as repeated concurrent de- and reinitialization.
      This tries to catch races and makes sure that it is possible to
      reinitialize libgit2 multiple times.
      
      After deinitializing libgit2, we have to make sure to setup
      options required for testing. Currently, this only includes
      setting up the configuration search path again. Before, this has
      been set up once in `tests/main.c`.
      Patrick Steinhardt committed
    • global: reset global state on shutdown without threading · 038f0e1b
      When threading is not enabled for libgit2, we keep global state
      in a simple static variable. When libgit2 is shut down, we clean
      up the global state by freeing the global state's dynamically
      allocated memory. When libgit2 is built with threading, we
      additionally free the thread-local storage and thus completely
      remove the global state. In a non-threaded build, though, we
      simply leave the global state as-is, which may result in an error
      upon reinitializing libgit2.
      
      Fix the issue by zeroing out the variable on a shutdown, thus
      returning it to its initial state.
      Patrick Steinhardt committed
  2. 01 Nov, 2016 2 commits
  3. 31 Oct, 2016 6 commits
  4. 28 Oct, 2016 3 commits
  5. 27 Oct, 2016 2 commits
  6. 16 Oct, 2016 1 commit
  7. 15 Oct, 2016 1 commit
  8. 10 Oct, 2016 16 commits
  9. 09 Oct, 2016 6 commits
  10. 07 Oct, 2016 1 commit