1. 14 Dec, 2011 1 commit
  2. 17 Jun, 2011 1 commit
  3. 13 Sep, 2010 1 commit
    • Allison Karlitskaya's avatar
      Add g_data_input_stream_read_upto{,async,finish} · 2e78d07f
      Allison Karlitskaya authored
      These functions are meant to replace the read_until() flavour, with the
      following improvements:
      
        - consistency between the synchronous and asynchronous versions as to
          if the separator character is read (it never is).
      
        - support for using a nul byte as a separator character by way of
          addition of a length parameter which allows stop_chars to be treated
          as a byte array rather than a nul-terminated string.
      
      The read_until() functions are not yet formally deprecated, but a note
      has been added to the documentation warning not to use them as they will
      be in the future.
      
      This is bug #584284.
      2e78d07f
  4. 03 Sep, 2010 3 commits
    • Christian Persch's avatar
      Plug a mem leak in data-input-stream test · 45331a46
      Christian Persch authored
      ==12351== 45,045 bytes in 4,095 blocks are definitely lost in loss record 377 of 380
      ==12351==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
      ==12351==    by 0x4057094: g_malloc (gmem.c:134)
      ==12351==    by 0x40573DB: g_malloc_n (gmem.c:281)
      ==12351==    by 0x4071ABD: g_strconcat (gstrfuncs.c:315)
      ==12351==    by 0x8049811: test_read_lines (data-input-stream.c:99)
      
      Bug #628331.
      45331a46
    • Christian Persch's avatar
      Plug a mem leak in data-input-stream test · 36c7d95c
      Christian Persch authored
      ==2415== 45,045 bytes in 4,095 blocks are definitely lost in loss record 393 of 399
      ==2415==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
      ==2415==    by 0x4057094: g_malloc (gmem.c:134)
      ==2415==    by 0x417FC29: g_data_input_stream_read_line (gdatainputstream.c:797)
      ==2415==    by 0x8049874: test_read_lines (data-input-stream.c:111)
      
      ==12088== 360 bytes in 40 blocks are definitely lost in loss record 368 of 381
      ==12088==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
      ==12088==    by 0x4057094: g_malloc (gmem.c:134)
      ==12088==    by 0x417FF4C: g_data_input_stream_read_until (gdatainputstream.c:914)
      ==12088==    by 0x8049B6F: test_read_until (data-input-stream.c:182)
      
      Bug #628331.
      36c7d95c
    • Christian Persch's avatar
      Plug a mem leak in data-input-stream test · 91e38035
      Christian Persch authored
      ==2415== 165 (72 direct, 93 indirect) bytes in 3 blocks are definitely lost in loss record 373 of 399
      ==2415==    at 0x4005BDC: malloc (vg_replace_malloc.c:195)
      ==2415==    by 0x4057094: g_malloc (gmem.c:134)
      ==2415==    by 0x406F2D6: g_slice_alloc (gslice.c:836)
      ==2415==    by 0x406F31B: g_slice_alloc0 (gslice.c:848)
      ==2415==    by 0x403A8A6: g_error_new_literal (gerror.c:117)
      ==2415==    by 0x403AC31: g_set_error_literal (gerror.c:314)
      ==2415==    by 0x417ED29: read_data (gdatainputstream.c:309)
      ==2415==    by 0x417EE9D: g_data_input_stream_read_byte (gdatainputstream.c:344)
      ==2415==    by 0x8049DEC: test_data_array (data-input-stream.c:263)
      
      Bug #628331.
      91e38035
  5. 30 Jul, 2010 1 commit
  6. 06 Jul, 2009 1 commit
  7. 01 Jul, 2009 1 commit
  8. 29 Jun, 2009 1 commit
  9. 01 Dec, 2008 1 commit
  10. 28 Nov, 2008 1 commit
    • Matthias Clasen's avatar
      Bug 547481 – g_data_input_stream_read_line behaves not as stated in the · e449a91b
      Matthias Clasen authored
      2008-11-28  Matthias Clasen  <mclasen@redhat.com>
      
              Bug 547481 – g_data_input_stream_read_line behaves not as stated in
              the docs
      
              * gdatainputstream.c (g_data_input_stream_read_line): Behave as
              documented and include the line end in the returned string.
              Pointed out by Paul Pogonyshev.
      
              * tests/data-input-stream.c: Fix the read_line test to test the
              documented behaviour.
      
      
      
      svn path=/trunk/; revision=7694
      e449a91b
  11. 27 Sep, 2008 1 commit
    • Dan Winship's avatar
      Use g_assert_error() and g_assert_no_error() · 29ddd48f
      Dan Winship authored
      	* tests/data-input-stream.c:
      	* tests/data-output-stream.c:
      	* tests/live-g-file.c:
      	* tests/memory-input-stream.c:
      	* tests/memory-output-stream.c: Use g_assert_error() and
      	g_assert_no_error()
      
      svn path=/trunk/; revision=7556
      29ddd48f
  12. 28 May, 2008 1 commit
    • Michael Natterer's avatar
      don't define G_DISABLE_SINGLE_INCLUDES, it's in the global CPPFLAGS now. · 03a5797a
      Michael Natterer authored
      2008-05-28  Michael Natterer  <mitch@imendio.com>
      
      	* Makefile.am: don't define G_DISABLE_SINGLE_INCLUDES, it's in
      	the global CPPFLAGS now.
      
      	* tests/data-input-stream.c
      	* tests/data-output-stream.c
      	* tests/g-file-info.c
      	* tests/g-file.c
      	* tests/live-g-file.c
      	* tests/memory-input-stream.c: don't include <glib/gtestutils.h>
      
      
      svn path=/trunk/; revision=6954
      03a5797a
  13. 27 May, 2008 1 commit
  14. 26 May, 2008 1 commit
  15. 10 Feb, 2008 1 commit
    • Matthias Clasen's avatar
      /bin/ksh can't handle a for-loop with no arguments, so add a "." for when · da0e7e81
      Matthias Clasen authored
      2008-02-09  Matthias Clasen <mclasen@redhat.com>
      
              * Makefile.decl: /bin/ksh can't handle a for-loop with no
              arguments, so add a "." for when $(SUBDIRS) is empty.
      
              * glib/tests/option-context.c:
              * glib/tests/testing.c:
              * gthread/gthread-posix.c:
              * tets/testingbase64.c:
              * glib/gtester.c:
              * glib/gsequence.c: Portability fixes.  (#515154)
      
      
      
      svn path=/trunk/; revision=6487
      da0e7e81
  16. 30 Jan, 2008 1 commit
    • Alexander Larsson's avatar
      C89 fixes from Jens Granseuer (#512849) · fc93e63e
      Alexander Larsson authored
      2008-01-30  Alexander Larsson  <alexl@redhat.com>
      
              * tests/data-input-stream.c:
              * tests/data-output-stream.c:
      	C89 fixes from Jens Granseuer (#512849)
      
      
      
      svn path=/trunk/; revision=6423
      fc93e63e
  17. 22 Jan, 2008 1 commit
    • Alexander Larsson's avatar
      Allow UTF-8 in file:// parse names. · b784923e
      Alexander Larsson authored
      2008-01-22  Alexander Larsson  <alexl@redhat.com>
      
              * glocalfile.c:
      	Allow UTF-8 in file:// parse names.
      	
              * tests/Makefile.am:
              * tests/data-input-stream.c:
              * tests/data-output-stream.c:
              * tests/g-file-info.c:
              * tests/g-file.c:
      	Added a bunch of tests from Tomas Bzatek
      
      
      svn path=/trunk/; revision=6351
      b784923e