1. 30 Jul, 2018 1 commit
  2. 09 Jul, 2018 2 commits
    • Emmanuele Bassi's avatar
      Add reference counted strings · 00a723f5
      Emmanuele Bassi authored
      The last part of the reference counting saga.
      
      Now that we have:
      
       - reference counter types
       - reference counted allocations
      
      we can finally add reference counted strings using reference counted
      allocations to avoid creating a new String type, and reimplementing
      every single string-based API.
      00a723f5
    • Emmanuele Bassi's avatar
      Add refcounted data · c5d2417d
      Emmanuele Bassi authored
      It is useful to provide a "reference counted allocation" API that can
      add reference counting semantics to any memory allocation. This allows
      turning data structures that usually are placed on the stack into memory
      that can be placed on the heap without:
      
       - adding a public reference count field
       - implementing copy/free semantics
      
      This mechanism is similar to Rust's Rc<Box<T>> combination of traits,
      and uses a Valgrind-friendly overallocation mechanism to store the
      reference count into a private data segment, like we do with GObject's
      private instance data.
      c5d2417d
  3. 13 Mar, 2018 1 commit
  4. 01 Aug, 2017 1 commit
    • LRN's avatar
      gio: add a simple gpoll performance test for W32 · 425a9f58
      LRN authored
      It just creates a number of socket pairs, then triggers read-ready status on these pairs in different patterns (none, one, half, all) and checks how much time it takes to g_poll() those. Also sometimes posts a Windows message and polls for its arrival.
      The g_main_context_new() is necessary to initialize g_poll() debugging on W32.
      
      Measures minimal and maximal time it takes to g_poll(), as well as the average, over 1000 runs.
      Collects the time values into 25 non-linear buckets between 0ns and 1000ns, and displays them at the conclusion of each subtest.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=785468
      425a9f58
  5. 13 Jul, 2017 1 commit
  6. 06 Feb, 2017 1 commit
  7. 14 May, 2016 1 commit
  8. 28 Apr, 2016 1 commit
  9. 18 Jan, 2016 2 commits
  10. 30 Oct, 2015 1 commit
  11. 28 Jul, 2015 1 commit
    • Matthias Clasen's avatar
      Remove malloc tests · b173244b
      Matthias Clasen authored
      These tests were about the no longer supported
      vtable functionality, so just remove them.
      b173244b
  12. 04 Apr, 2015 1 commit
  13. 23 Feb, 2015 1 commit
    • Colin Walters's avatar
      Add g_autofree · d0105f1c
      Colin Walters authored
      The g_autoptr() being associated with the type name works out really
      well for things like GHashTable.  However, it's a bit more awkward to
      associate with "gchar".  Also because one can't use "char".
      Similarly, there are a lot of other "bare primitive array" types that
      one might reasonably use.
      
      This patch does not remove the autoptr for "gchar", even though I
      think it's rather awkward and strange.
      
      Also while we're here, add a test case for the cleanup bits.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=744747
      d0105f1c
  14. 03 Mar, 2014 1 commit
  15. 13 Jan, 2014 1 commit
  16. 01 Jan, 2014 3 commits
  17. 11 Nov, 2013 1 commit
  18. 14 Oct, 2013 1 commit
  19. 20 Aug, 2013 1 commit
    • Matthias Clasen's avatar
      Fix make check · 49cf439c
      Matthias Clasen authored
      The glib/tests contained some tests for gtester. Now that
      we're not including glib.mk anymore, we have to define
      GTESTER ourselves.
      49cf439c
  20. 17 Aug, 2013 1 commit
    • Matthias Clasen's avatar
      Start using TAP · 0e9f9867
      Matthias Clasen authored
      Convert {glib,gobject,gio}/tests to use the automake TAP driver
      and test harness instead of gtester. To do so, we add a glib-tap.mk
      that provides the same interface as glib.mk, except for the
      reporting and coverage testing functionality. Eventually, we may
      want to replace glib.mk with it. I've not yet converted the
      toplevel tests/ directory, since it mixes gtestutils tests with
      other binaries.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=692125
      0e9f9867
  21. 01 Jun, 2013 2 commits
    • Matthias Clasen's avatar
      Skip spawn tests when collecting coverage · 7977bb15
      Matthias Clasen authored
      These tests break gcov's data collection, so don't link them
      against -lgov. See bug 682133.
      7977bb15
    • Allison Karlitskaya's avatar
      Rework the build system for a new tests approach · f9eb9eed
      Allison Karlitskaya authored
      Perform a substantial cleanup of the build system with respect to
      building and installing testcases.
      
      First, Makefile.decl has been renamed glib.mk and substantially
      expanded.  We intend to add more stuff here in the future, like canned
      rules for mkenums, marshallers, resources, etc.
      
      By default, tests are no longer compiled as part of 'make'.  They will
      be built when 'make check' is run.  The old behaviour can be obtained
      with --enable-always-build-tests.
      
      --disable-modular-tests is gone (because tests are no longer built by
      default).  There is no longer any way to cause 'make check' to be a
      no-op, but that's not very useful anyway.
      
      A new glibtests.m4 file is introduced.  Along with glib.mk, this
      provides for consistent handling of --enable-installed-tests and
      --enable-always-build-tests (mentioned above).
      
      Port our various test-installing Makefiles to the new framework.
      
      This patch substantially improves the situation in the toplevel tests/
      directory.  Things are now somewhat under control there.  There were
      some tests being built that weren't even being run and we run those now.
      The long-running GObject performance tests in this directory have been
      removed from 'make check' because they take too long.
      
      As an experiment, 'make check' now runs the testcases on win32 builds,
      by default.  We can't run them under gtester (since it uses a pipe to
      communicate with the subprocess) so just toss them in TESTS.  Most of
      them are passing on win32.
      
      Things are not quite done here, but this patch is already a substantial
      improvement.  More to come.
      f9eb9eed
  22. 29 May, 2013 1 commit
  23. 24 May, 2013 2 commits
  24. 16 May, 2013 2 commits
  25. 13 May, 2013 1 commit
  26. 16 Apr, 2013 1 commit
  27. 27 Feb, 2013 1 commit
  28. 03 Feb, 2013 1 commit
  29. 02 Feb, 2013 1 commit
  30. 20 Jan, 2013 1 commit
  31. 19 Dec, 2012 2 commits
  32. 20 Aug, 2012 1 commit