add g_async_queue_new_full() which takes a GDestroyNotify function to free
[platform/upstream/glib.git] / ChangeLog
1 2007-12-18  Tim-Philipp Müller  <tim at centricular dot net>
2
3         * docs/reference/glib/glib-sections.txt:
4         * glib/gasyncqueue.c: (g_async_queue_new), (g_async_queue_new_full),
5           (g_async_queue_unref):
6         * glib/gasyncqueue.h: add g_async_queue_new_full() which takes a
7           GDestroyNotify function to free any remaining queue items when the
8           queue is destroyed after the final atomic unref (#367550).
9
10 2007-12-18 13:45:23  Tim Janik  <timj@imendio.com>
11
12         * glib/gtestutils.[hc]: added g_test_trap_assert_stdout_unmatched() and
13         g_test_trap_assert_stderr_unmatched(), based on a suggestion by Mathias
14         Hasselmann. reworked g_test_trap_assertions() to use flags to encode
15         assertion semantics, fixes #504227.
16
17 2007-12-16  Mathias Hasselmann  <mathias@openismus.com>
18
19         * glib/gutils.c:
20         Allow NULL strings in g_parse_debug_string. (#503862, Matthew Barnes)
21
22 2007-12-14  Matthias Clasen  <mclasen@redhat.com>
23
24         * glib/glib.symbols:
25         * glib/ghash.[hc]: Add hash table iterators.  (#500507,
26         Jean-Yves Lefort)
27
28         * tests/hash-test.c: Test iterators. 
29
30 2007-12-13  Mathias Hasselmann  <mathias@openismus.com>
31
32         Give exmples in error message unsupported case-changing escape
33         sequences. (503222)
34
35         * glib/gregex.c: Add examples to error message for PCRE-ERR37.
36
37 2007-12-13  Bastien Nocera  <hadess@hadess.net>
38
39         * glib/gtimer.c: (g_time_val_from_iso8601):
40         Don't try to parse dates that start with anything but a
41         digit, a plus or a minus sign, as those can't be valid
42         ISO8601 dates (Closes: #503029)
43
44 2007-12-13  Matthias Clasen  <mclasen@redhat.com>
45
46         * glib/gkeyfile.c (g_key_file_clear): Free group_hash.
47         (#503420, Christian Persch)
48
49 2007-12-12 16:06:11  Tim Janik  <timj@imendio.com>
50
51         * tests/testglib.c: split up tests and reworked code to use
52         the new test framework.
53
54         * tests/Makefile.am: added testglib to TEST_PROGS.
55
56 2007-12-11 Rahul Bhalerao <b.rahul.pm@gmail.com>
57
58         * configure.in: Added entry for Marathi Translations
59
60 2007-12-10  Matthias Clasen  <mclasen@redhat.com>
61
62         * glib/glib.h: Include gurifuncs.h
63
64 2007-12-10  Benjamin Otte  <otte@gnome.org>
65
66         * glib/garray.h: use an intermediate cast to void * in g_array_index()
67         to not trigger cast alignment warnings, fixes #502927.
68
69 2007-12-10 15:08:59  Tim Janik  <timj@imendio.com>
70
71         * let g_warn_if_fail replace g_assert as discussed here:
72           http://mail.gnome.org/archives/gtk-devel-list/2007-October/msg00089.html
73
74         * fix bug #502498: Test framework assertion failures should follow
75         gcc error format.
76
77         * gmessages.h, gmessages.c: deprecated g_assert_warning() which is
78         unused now. removed g_assert*() definitions whcih are provided by 
79         gtestutils.h now. added g_warn_if_reached() and g_warn_if_fail()  
80         which are recommended as g_assert/g_assert_not_reached replacements
81         for non-test programs.
82         added g_warn_message() to implement g_warn_*() macros.
83         use emacs-next-error friendly formatting for file:line: for warnings.
84
85         * gtestutils.h, gtestutils.c: use emacs-next-error friendly formatting.
86         implement g_assert_not_reached() with g_assertion_message() and
87         g_assert() in terms of g_assertion_message_expr() so we'll be able to
88         provide assertion messages in test logs.
89
90         * gkeyfile.c, gbookmarkfile.c: changed g_assert*() to g_warn_if_fail()
91         or g_return_if_fail() where suitable.
92
93         * gio/: changed g_assert to g_warn_if_fail.
94
95 2007-12-10 13:02:08  Tim Janik  <timj@imendio.com>
96
97         * glib/gtestutils.c (g_assertion_message_cmpnum): applied patch by Tommi
98         Komulainen to fix int64 printouts, fixes #502511.
99
100 2007-12-10  Matthias Clasen  <mclasen@redhat.com>
101
102         * glib/gstrfuncs.h:
103         * glib/gstrfuncs.c (g_dpgettext): Change prototype to take 
104         msgctxtid + offset instead of two strings, to avoid duplication
105         of string constants if the compiler/linker don't perform constant
106         suffix merging.  (#502590, Christian Persch)
107
108         * glib/gi18n.h:
109         * glib/gi18n-lib.h: Adapt the definitions of C_() and Q_().
110
111 2007-12-09  Hans Breuer  <hans@breuer.org>
112
113         * tests/gio-ls.c : (new file) a test program emulating some of 'ls'
114         * tests/makefile.msc.in : build it (currently on win32)
115
116         * **/makefile.msc glib/makefile.msc.in : removed -GD to compile
117         with msvc9 (vs2008) with less complains
118         
119         * glibconfig.h.win32.in : #define G_HAVE_ISO_VARARGS 1 for
120         msv8 (vs2005) and above
121         
122         * glib/gfileutils.c : s/stricmp/_stricmp/
123         * msvc_recommended_pragmas.h : work around Microsoft's premature 
124         attempt to deprecate the C-Library
125
126         * tests/makefile.msc.in : added checksum-test
127
128 2007-12-08  Christian Persch  <chpe@gnome.org>
129
130         * gio/glocalfileinfo.c: (get_thumbnail_attributes): Add forgotten
131         #ifdef G_OS_WIN32 to fix the build on linux.
132
133 2007-12-08  Hans Breuer  <hans@breuer.org>
134
135         * glib/makefile.msc.in : build gchecksum.obj
136
137 2007-12-06  Mathias Hasselmann  <mathias@openismus.com>
138
139         * glib/ghash.c: Call destroy notify when destroying
140         the hash table in g_hash_table_unref.
141
142 2007-12-06 13:29:00  Tim Janik  <timj@imendio.com>
143
144         * glib/gtester.c (child_report_cb): detect non-blocking fd EOF
145         by read()==0 following poll(), needed on MacOS.
146
147 2007-12-06  Mathias Hasselmann  <mathias@openismus.com>
148
149         * glib/gunidecomp.c: Mention g_utf8_normalize()
150         returns NULL on invalid string. (#501997)
151
152 2007-12-06  Mathias Hasselmann  <mathias@openismus.com>
153
154         * glib/gerror.c: Improve wording for g_propagate_error docs.
155
156 2007-12-06 09:27:42  Tim Janik  <timj@imendio.com>
157
158         * tests/scannerapi.c: added new scanner test from #501654, by
159         Patrick Hulin with various modifications.
160         reworked coding style, adapted to new testing framework, fixed
161         token parser test and use a forked sub process to test
162         g_scanner_error() output messages.
163
164 2007-12-05 17:58:18  Tim Janik  <timj@imendio.com>
165
166         * glib/gtester.c: added -m=thorough support to gtester.
167
168 2007-12-05 17:21:05  Tim Janik  <timj@imendio.com>
169
170         * glib/glib/gtestutils.c: print out random seed for verbose tests,
171         also adapted test result reporting slightly in verbose mode to allow
172         custom debugging output. support "thorough" as test mode alis for "slow".
173
174         * glib/glib/gtestutils.h: added g_test_thorough().
175
176         * glib/glib/gtester.c: print out the last random seed when tests fail.
177         added result attribute to test case status logging to easily spot
178         failing tests in log files. disabled debugging output when skipping tests.
179
180 2007-12-05 11:43:22  Tim Janik  <timj@imendio.com>
181
182         * glib/gtestutils.[hc]: added g_test_add_data_func() to pass data
183         into tests. allow data arguments for fixture tests.
184
185         * glib/gtestutils.c: fixed fatal log flag setup, so tests really abort
186         upon criticals/warnings/errors.
187
188         * glib/tests/testing.c: test test_data arguments.
189
190         * glib/gtester.c: some prototype fixups.
191
192 2007-12-05  Tor Lillqvist  <tml@novell.com>
193
194         * glib/win_iconv.c: Add "shift-jis" as an alternative spelling of
195         "shift_jis".
196
197 2007-12-05  Ryan Lortie  <desrt@desrt.ca>
198
199         * autogen.sh: for the benefit of git users, checkout build/ if it is
200         missing
201         * .gitignore: but after that, ignore it.
202
203 2007-12-05  Ryan Lortie  <desrt@desrt.ca>
204
205         * glib/ghash.c: ungtk-docify some comments for internal functions
206
207 2007-12-04  Emmanuele Bassi  <ebassi@gnome.org>
208
209         * gio/glocalfileinfo.c: Replace the copy-and-paste MD5 digest
210         generation with GChecksum.
211
212 2007-12-04  Emmanuele Bassi  <ebassi@gnome.org>
213
214         * glib/gchecksum.[ch]: Add GChecksum, a generic wrapper around
215         various hashing algorithms. At the moment, the MD5, SHA-1 and
216         SHA-256 algorithms are supported. (#443648)
217
218         * glib/glib.h:
219         * glib/Makefile.am:
220         * glib/glib.symbols: Build glue for GChecksum
221
222         * tests/Makefile.am
223         * tests/checksum-test.c: Add test suite for GChecksum.
224
225 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
226
227         * glib/ghash.c: no code changes; add comments to document the internal
228         functions.
229
230 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
231
232         * glib/ghash.c: no code changes; reorder functions to remove the need
233         for forward declarations.
234
235 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
236
237         * glib/ghash.c (g_hash_table_lookup_node,
238         g_hash_table_lookup_extended, g_hash_table_insert_internal,
239         g_hash_node_new): improve clarity in some functions
240
241 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
242
243         * glib/ghash.c: rename 'node' to 'node_ptr' where appropriate
244
245 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
246
247         * glib/ghash.c: convert G_HASH_TABLE_RESIZE() macro to inline function
248
249 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
250
251         * glib/glib.symbols (glib_gettext): remove stray (duplicate) entry
252         from file to fix the build
253
254 2007-12-03  Behdad Esfahbod  <behdad@gnome.org>
255
256         * glib/gnulib/Makefile.am: Fix EXTRA_DIST automake warnings. (#501107)
257
258 2007-12-03  Hans Breuer  <hans@breuer.org>
259
260         * glib/glib.symbols : added glib_gettext (in use by gio)
261         * makefile.msc : also try building gio
262         
263         * glib/gmarkup.c : use G_GUINT64_CONSTANT() to avoid 
264         'bad suffix on number'
265         * glib/gtestutils.c : declare cariable at the beginning of the block,
266         include <io.h> for G_OS_WIN32
267         * makefile.msc.in : add gurifuncs and gtestutils
268
269 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
270
271         * glib/ghash.c: create a common function for the many places where all
272         nodes in the table are removed (remove_all, steal_all, destroy, unref,
273         etc...)
274
275 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
276
277         * tests/hash-test.c (second_hash_test): fix memory leak, add a few
278         extra sanity tests.
279
280 2007-12-03  Matthias Clasen  <mclasen@redhat.com>
281         
282         * glib/gkeyfile.c: Don't call g_get_language_names() per-key.
283         (#500638, Michael Meeks)
284
285 2007-12-03  Marco Barisione <marco@barisione.org>
286
287         * glib/gregex.c:
288         * glib/gregex.h: Add new error codes for when compilation fails and
289         make compilation error translatable. (#482313, Morten Welinder)
290
291 2007-12-03  Matthias Clasen  <mclasen@redhat.com>
292
293         * glib/gkeyfile.c: Add a hash table to speed up group lookups,
294         which GKeyFile does quite a lot.  
295
296 2007-12-03  Alexander Larsson  <alexl@redhat.com>
297
298         * configure.in:
299         Add xattr checks for OSX style API (#500506)
300
301 2007-12-03  Ryan Lortie  <desrt@desrt.ca>
302
303         * glib/ghash.c: merge more common code into functions.  Vastly
304         simplify loop logic in g_hash_table_foreach_remove_or_steal().
305
306 2007-12-01  Behdad Esfahbod  <behdad@gnome.org>
307
308         * Makefile.am: Don't descend into build/. (#500875)
309
310 2007-11-28  Matthias Clasen  <mclasen@redhat.com>
311
312         * glib/gmarkup.h:
313         * glib/gmarkup.c: 
314         * glib/gerror.c: Add Since: tags to new API, other doc improvements.
315
316 2007-11-28  Matthias Clasen  <mclasen@redhat.com>
317
318         * glib/gurifuncs.c: Some doc cleanups
319
320 2007-11-28  Matthias Clasen  <mclasen@redhat.com>
321
322         * glib/gtestutils.c: Fix up some doc comments, avoid C99 comments
323
324         * glib/gconvert.c: De-doc-commentify static functions to
325         shut up gtk-doc.
326
327         * glib/gutils.c: Fix the glib_gettext doc comment.
328
329 2007-11-28  Tor Lillqvist  <tml@novell.com>
330
331         * config.h.win32.in: Update to match what configure produces.
332
333 2007-11-28  Alexander Larsson  <alexl@redhat.com>
334
335         * glib/gstring.c (g_string_append_uri_escaped):
336         Move this function before g_string_append_c so that
337         we avoid the plt call due to the undefinf of g_string_append_c
338
339 2007-11-28  Emmanuele Bassi  <ebassi@gnome.org>
340
341         * gio/Makefile.am: Remove makegioalias.pl from the marshal files
342         and avoid it being cleaned up when running make clean.
343
344 2007-11-28  Alexander Larsson  <alexl@redhat.com>
345
346         * glib/glib.symbols:
347         Add in the new symbols
348         
349         * glib/gurifuncs.c:
350         Use the aliases framework
351         
352         * glib/glibintl.h:
353         * glib/gutils.c:
354         Make the alias stuff work now that glib_gettext
355         is exported to libgio. 
356
357 2007-11-27  Ryan Lortie  <desrt@desrt.ca>
358
359         * glib/ghash.c (g_hash_table_insert, g_hash_table_replace,
360         g_hash_table_insert_internal): insert/replace were identical except
361         for a single line.  Replace both with a common function.
362
363 2007-11-27  Alexander Larsson  <alexl@redhat.com>
364
365         * gio/Makefile.am:
366         * gio/gurifuncs.[ch]:
367         * glib/Makefile.am:
368         * glib/gstring.[ch]:
369         * glib/gurifuncs.[ch]:
370         Moved gurifuncs from gio to glib
371
372 2007-11-27  Alexander Larsson  <alexl@redhat.com>
373
374         * gio/gfileinfo.[ch]:
375         * glib/gfileutils.[ch]:
376         Move g_format_file_size_for_display from gio to glib
377
378 2007-11-27  Alexander Larsson  <alexl@redhat.com>
379
380         * configure.in:
381         Allow configuration of gio-module-dir
382         
383         * gio-2.0.pc.in:
384         Export giomodules location as giomodule variable
385
386 2007-11-26  Matthias Clasen  <mclasen@redhat.com>
387
388         * tests/markup-collect.c: Add some tests for invalid booleans
389
390 2007-11-26  Ryan Lortie  <desrt@desrt.ca>
391  
392         Add new function g_markup_collect_attributes (bug #496847).
393  
394         * glib/glib.symbols: add g_markup_collect_attributes
395  
396         * docs/reference/glib/glib-sections.txt: 
397         * glib/gmarkup.h:
398         * glib/gmarkup.c: add g_markup_collect_attributes and new enumerated
399         type GMarkupCollectType.  Add new error code
400         G_MARKUP_ERROR_MISSING_ATTRIBUTE that is thrown by the attribute
401         collector.
402
403 2007-11-27  Tor Lillqvist  <tml@novell.com>
404
405         * glib/win_iconv.c: Some improvements, being upstreamed.
406         (must_use_null_useddefaultchar): New function, checks for those
407         codepages for which one must pass a NULL lpUsedDefaultChar pointer
408         to WideCharToMultiByte().
409         (kernel_wctomb): Use it.
410         (kernel_wctomb): Return with E2BIG immediately if bufsize is zero.
411
412 2007-11-27  Tor Lillqvist  <tml@novell.com>
413
414         * glib/gutils.c (_glib_get_locale_dir) [Win32]: Use either
415         lib/locale or share/locale depending on which one is in
416         GLIB_LOCALE_DIR. When the configury recognizes GNU gettext (based
417         on the _nl_msg_cat_cntr variable, eek), share/locale gets used.
418
419         * glib-zip.in: Likewise, look for message catalogs either in
420         lib/locale or share/locale.
421
422 2007-11-26  Matthias Clasen  <mclasen@redhat.com>
423
424         * gio/gfileattribute.c: Fix up a doc comment.
425
426 2007-11-26  Alexander Larsson  <alexl@redhat.com>
427
428         * Makefile.am:
429         * configure.in:
430         * gio-2.0-uninstalled.pc.in:
431         * gio-2.0.pc.in: 
432         * gio-unix-2.0-uninstalled.pc.in:
433         * gio-unix-2.0.pc.in:
434         * gio/
435         * docs/reference/gio
436         Merged gio-standalone into glib.
437         
438         * glib/glibintl.h:
439         * glib/gutils.c:
440         Export glib_gettext so that gio can use it
441         Add P_ (using same domain for now)
442         Add I_ as g_intern_static_string
443
444 2007-11-26  Tor Lillqvist  <tml@novell.com>
445
446         * glib/win_iconv.c: ISO8859-1 is CP28591, not CP1252.
447
448 2007-11-26  Tor Lillqvist  <tml@novell.com>
449
450         Implement #491549: On Windows, always use the native API for
451         character set conversions instead of GNU libiconv. Almost all
452         codesets supported by GNU libiconv exist as Windows codepages.
453         One missing feature is the "C99" and "JAVA" pseudo codesets, but I
454         doubt that is worth worrying about.
455         
456         * glib/win_iconv.c: New file. iconv() implementation for
457         Windows. Placed in the public domain by Yukihiro Nakadaira
458         <yukihiro.nakadaira@gmail.com>. From
459         http://yukihiro.nakadaira.googlepages.com/win_iconv.zip, his
460         2007-11-17 version.
461
462         * glib/gconvert.c: Include win_iconv.c on Windows.
463
464         * glib/Makefile.am: Add win_iconv.c to EXTRA_DIST.
465         
466         * configure.in: Bypass iconv checks on Windows. 
467
468 2007-11-25  Tor Lillqvist  <tml@novell.com>
469
470         * glib/gtestutils.c: Add conditionals for non-Unix. Just g_error()
471         unless G_OS_UNIX for now.
472
473 2007-11-25  Matthias Clasen  <mclasen@redhat.com>
474
475         * configure.in: Require gtk-doc 1.8.
476
477         * glib/gasyncqueue.c:
478         * glib/gdate.c:
479         * glib/gfileutils.c:
480         * glib/gmain.c:
481         * glib/gmarkup.c:
482         * glib/gregex.c:
483         * glib/gtestutils.c:
484         * glib/gutils.c: Use gtk-doc abbreviations for 
485         examples in doc comments.
486
487 2007-11-24  Matthias Clasen  <mclasen@redhat.com>
488
489         * */Makefile.am: Replace INCLUDES by AM_CPPFLAGS, other
490         cleanups.
491
492 2007-11-24  Matthias Clasen  <mclasen@redhat.com>
493
494         * tests/base64-test.c: Fix a memory overrun.
495
496 2007-11-24  Matthias Clasen  <mclasen@redhat.com>
497
498         * glib/gutils.c: Remove leftover ENABLE_NLS #ifdefs.
499
500 2007-11-23  Matthias Clasen  <mclasen@redhat.com>
501
502         * glib/gbase64.c (g_base64_encode): Don't refuse to encode
503         a single byte.  (Milan Crha)
504
505         * tests/base64-test.c: Test encoding short strings.
506
507 2007-11-23  Matthias Clasen  <mclasen@redhat.com>
508
509         * glib/gi18n-lib.h: 
510         * glib/gi18n.h: Define a two-argument macro C_() for marking
511         translatable strings with context and implement C_() and Q_()
512         using g_dpgettext().  (#142676, Morten Welinder)
513
514         * glib/glib.symbols:
515         * glib/gstrfuncs.[hc]: Implement g_dpgettext().
516
517 2007-11-23  Matthias Clasen  <mclasen@redhat.com>
518
519         * glib/goption.c: Use g_print to print out --help text in 
520         locale encoding.  (#469551, Takao Fujiwara)
521
522 2007-11-22  Matthias Clasen  <mclasen@redhat.com>
523
524         * glib/gkeyfile.c: Set length out param in list-returning functions
525         to 0 when returning NULL.  (#498728, Christian Persch)
526
527 2007-11-21 21:06:47  Tim Janik  <timj@imendio.com>
528
529         * Makefile.decl: initialize automake variables EXTRA_DIST and
530         TEST_PROGS for unconditional appending via += in other makefiles.
531         define recursive test targets: test, test-report, perf-report,
532         full-report, as described here:
533       http://mail.gnome.org/archives/gtk-devel-list/2007-November/msg00000.html
534
535         * Makefile.am:
536         * build/win32/vs8/Makefile.am, build/win32/dirent/Makefile.am:
537         * build/win32/Makefile.am, build/Makefile.am:
538         * docs/Makefile.am, docs/reference/Makefile.am:
539         * docs/reference/glib/Makefile.am, docs/reference/gobject/Makefile.am:
540         * gmodule/Makefile.am, tests/Makefile.am:
541         * tests/refcount/Makefile.am, tests/gobject/Makefile.am:
542         * glib/update-pcre/Makefile.am, glib/libcharset/Makefile.am:
543         * glib/tests/Makefile.am, glib/pcre/Makefile.am:
544         * glib/gnulib/Makefile.am, gobject/Makefile.am, m4macros/Makefile.am:
545         * gthread/Makefile.am, glib/Makefile.am:
546         include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments.
547
548         * glib/tests/Makefile.am: removed example testing rules.
549
550         * glib/tests/testing.c: conditionalized performance and slow tests.
551
552         * glib/gtestutils.h:
553         * glib/gtestutils.c: work around g_test_config_vars not changing its
554         exported value after value assignments, aparently due to symbol aliases.
555
556         * glib/gtester.c: fixed off-by-one error which produced junk in logs.
557
558         * configure.in: check for python >= 2.4 and provide $PYTHON for scripts.
559
560 Tue Nov 20 15:59:55 2007 +0100 Tim Janik
561
562         Renamed gtestframework to gtestutils.
563
564         * glib/glib.h:
565         * glib/Makefile.am: added gtestutils.h to public includes.
566
567         * glib/gtestutils.c: include gtestutils.h.
568
569         * glib/gtestutils.h:
570         * glib/glib.symbols:
571         * glib/tests/testing.c: renamed gtestframework to gtestutils.
572
573         * glib/gtestframework.h: renamed to gtestutils.h.
574
575         * glib/gtestframework.c: renamed to gtestutils.c.
576
577 Tue Nov 20 15:29:34 2007 +0100 Tim Janik
578
579         glib/gtestframework.c: g_test_init(): make warnings and criticals fatal for all test programs.
580
581 Wed Nov 14 20:35:05 2007 +0100 Tim Janik
582
583         gtestframework.c: added test API documentation by Sven Herzberg and Tim Janik.
584
585 Wed Nov 14 19:10:28 2007 +0100 Tim Janik
586
587         gtestframework.[hc]: implemented g_test_queue_destroy() and g_test_queue_unref().
588
589 Fri Nov 9 12:28:52 2007 +0100 Tim Janik
590
591         Added g_test_bug() and related API.
592
593         * gtester.c: handle G_TEST_LOG_MESSAGE and test test message API.
594
595         * gtestframework.h, gtestframework.c: added test message API and convenience
596         API to send test messages about bug URLs.
597
598 Fri Nov 9 11:35:11 2007 +0100 Tim Janik
599
600         Added API to access test framework configuration.
601
602         * gtestframework.h, gtestframework.c: export testing configuration to test
603         programs with g_test_quick(), g_test_perf(), g_test_verbose(), g_test_quiet().
604
605 Thu Nov 8 17:55:09 2007 +0100 Tim Janik
606
607         gtester: implemented logic to handle failing tests, self tests, and validate XML reports.
608
609         * gtester.c: terminate when tests failed. keep XML valid when test cases fail.
610         restart test binaries when tests fail, resuming after the last processed test.
611         support --gtester-selftest to run gtester itself as test program.
612         support --test-arg=<arg> to pass args along to test programs. added
613         main_selftest() which does a simplistic fixture test. fail if exit
614         code of test programs is not 0.
615
616         * gtestframework.h: added G_TEST_LOG_SKIP_CASE test log message type.
617
618         * gtestframework.c: support --GTestSkipCount=<n> to skip a number of tests.
619
620         * tests/Makefile.am: added test-report: for demonstration purposes.
621         added gtester-xmllint-check: and hooked it up into check:, this rule calls
622         gtester as test program, running it's selftest, and then uses xmllint to
623         validate the generate XML test log file.
624
625 Thu Nov 8 14:51:37 2007 +0100 Tim Janik
626
627         gtester: implemented XML logging.
628
629         * glib/gtester.c: log test messages to XML output file. beautified normal test
630         result output.
631
632         * glib/gtestframework.c: fixed GTimer leak.
633
634         * glib/tests/Makefile.am: start gtester with --verbose.
635
636 Thu Nov 8 12:33:31 2007 +0100 Tim Janik
637
638         tests/Makefile.am: execute test programs with gtester, add test: to check:
639
640 Thu Nov 8 12:18:51 2007 +0100 Tim Janik
641
642         Fixed PLT symbol exports for gtestframework.h.
643
644         * glib/glib.symbols: added all exported gtestframework.h symbols.
645
646         * glib/gtestframework.c: include galias.h, galiasdef.c, define __G_TESTFRAMEWORK_C__.
647
648 Thu Nov 8 11:31:12 2007 +0100 Tim Janik
649
650         glib/gtester.c: fixed debugging flag.
651
652 Wed Nov 7 17:56:26 2007 +0100 Tim Janik
653
654         fixed bogus unistd.h include.
655
656 Wed Nov 7 17:53:30 2007 +0100 Tim Janik
657
658         Implemented test log IPC.
659
660         * gtester.c: read and decode log messages from test binary child processes.
661         fixed GIOChannel and child watch handling to process all messages and avoid
662         hangs. pass --verbose and --quiet on to children, default to --quiet.
663
664         * gtestframework.h: export g_test_log_type_name().
665
666         * gtestframework.c: send test log to --GTestLogFD=<fd> if given, removed
667         bogus -o-option.
668
669 Tue Nov 6 20:07:44 2007 +0100 Tim Janik
670
671         gtester.c: support test case listing through gtester.
672
673 Tue Nov 6 20:01:06 2007 +0100 Tim Janik
674
675         gtestframework.c: fixed testpath matches for automatic root suite.
676
677 Tue Nov 6 19:50:33 2007 +0100 Tim Janik
678
679         gtester.c: adapted to become a rudimentary test binary launcher.
680
681         * gtester.c: increased read buffer size to match common unix pipe buffer size.
682         added argument parsing and usage. changed io handling to capture and replicate
683         stdout. fixed io handlers to be cleaned up when the child process exits (catch
684         G_IO_ERR | G_IO_HUP). we now use pending/iteration instead of a main loop
685         structure, to keep running until the child process exits and all io has been
686         processed. launch the test binaries given on the command line. don't quit when
687         a child couldn't be launched but --keep-going was specified.
688
689 Tue Nov 6 17:11:37 2007 +0100 Tim Janik
690
691         Integrated gtester program into build process.
692
693         * Makefile.am: build and install gtester binary.
694
695         * gtester.c: fixed up coding style and removed hard wired test coded.
696
697 Tue Nov 6 16:12:32 2007 +0100 Sven Herzberg
698
699         glib/gtester.c:Small -Wall fix
700
701 Tue Nov 6 16:05:06 2007 +0100 Sven Herzberg
702
703         glib/gtester.c:Implemented nonblocking reading properly now
704
705 Mon Nov 5 13:53:23 2007 +0100 Sven Herzberg
706
707         glib/gtester.c:Quit the application when the output is parsed completely, not just the process finished
708
709 Mon Nov 5 12:00:16 2007 +0100 Sven Herzberg
710
711         glib/gtester.c:Read the output of the child process
712
713 Mon Nov 5 11:50:59 2007 +0100 Sven Herzberg
714
715         glib/gtester.c:Use g_spawn_async_with_pipes()
716
717 Mon Nov 5 11:50:08 2007 +0100 Sven Herzberg
718
719         glib/gtester.c:Spawn a process async and quit gtester after the child process exited
720
721 Mon Nov 5 11:30:45 2007 +0100 Sven Herzberg
722
723         glib/gtester.c:Added a first revision of gtester
724
725 Tue Nov 6 16:47:06 2007 +0100 Tim Janik
726
727         Implemented test log serialization.
728
729         * glib/gtestframework.h: added g_test_log*() API.
730
731         * glib/gtestframework.c: implement test log serialization.
732
733 Tue Nov 6 14:24:54 2007 +0100 Tim Janik
734
735         Implemented test logging basics.
736
737         * glib/gtestframework.c: added --debug-log and --verbose, implemented
738         test information logging.
739
740         * testing.c: test g_test_maximized_result() and g_test_minimized_result().
741
742 Tue Nov 6 11:52:14 2007 +0100 Tim Janik
743
744         Implemented g_test_timer*().
745
746         * gtestframework.c: implemented g_test_timer*().
747
748         * tests/testing.c: added a g_test_timer*() test.
749
750 Mon Nov 5 18:28:24 2007 +0100 Tim Janik
751
752         Implemented support for testpaths.
753
754         * gtestframework.c: implemented g_test_add_vtable() and g_test_add_func().
755
756         * tests/testing.c: use g_test_add() and g_test_add_func() to majorly simplify main().
757
758 Mon Nov 5 15:56:42 2007 +0100 Tim Janik
759
760         testing.c: added tests for the g_test_rand*() API.
761
762 Mon Nov 5 15:55:38 2007 +0100 Tim Janik
763
764         Implemented g_test_rand*().
765
766         * gtestframework.h: fixed g_assert_cmp*() to evaluate arguments only once.
767         added g_assert_cmpuint(). completed g_test_rand*() to cover bits, ints,
768         doubles and ranges.
769
770         * gtestframework.c: fixed "--seed" option and implemented g_test_rand*().
771
772 Mon Nov 5 15:51:43 2007 +0100 Tim Janik
773
774         testing.c: added tests for g_assert_cmphex() and forked test traps.
775
776 Mon Nov 5 15:10:18 2007 +0100 Tim Janik
777
778         Implemented g_test_trap_fork() API.
779
780         * gtestframework.h: added g_assert_cmphex(). reworked g_test_trap*() API.
781
782         * gtestframework.c: implemented g_test_trap_fork() API.
783
784 Thu Nov 1 15:05:07 2007 +0100 Tim Janik
785
786         * glib/gtestframework.c:
787
788         that match a given test path.
789         (g_test_run_suite): run suite only if it matches the existing test paths.
790
791         * glib/tests/testing.c: minor rename.
792
793 Thu Nov 1 13:45:55 2007 +0100 Tim Janik
794
795         GTest framework started.
796
797         * glib/gtestframework.h: testing framework API as proposed on gtk-devel-list.
798         includes elaborate assertions, performance report functions, test traps,
799         test timer, test random numbers, teardoiwn garbage collection functions
800         and general test case / test suite management APIs.
801
802         * glib/gtestframework.c: first test framework implementation. already covers
803         some test suite management APIs and assertion message implementations.
804
805         * glib/tests/testing.c: test program for the testing framework.
806
807         * glib/tests/Makefile.am: complie testing.c as test. run all tests as part of
808         make test:.
809
810 Wed Oct 31 15:42:48 2007 +0100 Tim Janik
811
812         glib/Makefile.am: build tests/ subdir after building libglib.
813
814 Tue Oct 30 16:17:32 2007 +0100 Tim Janik
815
816         Fixed up internal 'g_test*' names.
817
818         * refcount/signals.c:
819         * refcount/objects.c:
820         * refcount/objects2.c:
821         * refcount/closures.c:
822         * refcount/properties.c:
823         * refcount/properties2.c: changed namespace prefix from g_test_* to my_test_*
824         to not clash with newly introduced g_test* API in glib.
825
826 Tue Oct 30 14:41:26 2007 +0100 Tim Janik
827
828         Added gtestframework.[hc] and glib/tests/.
829
830 2007-11-20  Sven Neumann  <sven@gimp.org>
831
832         * glib/gerror.c (g_error_add_prefix): use g_strconcat() instead of
833         g_strjoin() to concatenate two strings.
834
835 2007-11-19  Marco Barisione  <marco@barisione.org>
836
837         * glib/gregex.c: When the compilation of a pattern fails in the error
838         message use the character offset and not the byte offset.
839
840         * glib/gregex.c: Pass an unsigned long instead of an int to
841         pcre_fullinfo() to avoid problems on 64-bit systems (#498113, Kouhei
842         Sutou)
843
844 2007-11-19 10:30:33  Tim Janik  <timj@imendio.com>
845
846         * configure.in: updated version number to 2.15.0 for development.
847
848 2007-11-18  Matthias Clasen  <mclasen@redhat.com>
849
850         * glib/gbase64.c: Documentation improvements.  (#496518,
851         Stefan Schulze Frielinghaus)
852
853 2007-11-18  Matthias Clasen  <mclasen@redhat.com>
854
855         * configure.in: Check whether assembler supports numerical local
856         labels.  
857
858         * glib/gatomic.c: Fix powerpc implementation of atomic ops for 
859         platforms where the assembler doesn't support numerical local
860         labels.  (#445362)
861
862 2007-11-15  Ryan Lortie  <desrt@desrt.ca>
863
864         * docs/reference/glib/tmpl/markup.sgml:
865         * glib/gmarkup.h:
866         * glib/gmarkup.c: new flag G_MARKUP_PREFIX_ERROR_POSITION to cause the
867         parser to prepend location information (ie: "Error on line %d, char
868         %d:") to errors generated by the GMarkupParser callbacks.
869
870         Closes #496046.
871
872 2007-11-15  Ryan Lortie  <desrt@desrt.ca>
873
874         * docs/reference/glib/glib-sections.txt:
875         * glib/glib.symbols:
876         * glib/gerror.h:
877         * glib/gerror.c: new functions g_prefix_error and
878         g_propagate_prefixed_error.
879
880 2007-11-13  Cody Russell  <bratsche@gnome.org>
881
882         * docs/reference/gobject/gobject-docs.sgml:
883         * docs/reference/gobject/tut_gsignal.xml:
884         * docs/reference/gobject/tut_gtype.xml:
885         * docs/reference/gobject/tut_intro.xml:
886         * docs/reference/gobject/tut_tools.xml:
887         * docs/reference/gobject/tut_howto.xml:
888         * docs/reference/gobject/tut_gobject.xml: Documentation fixes.
889         Recommend macro type names such as NAUTILUS_TYPE_WINDOW (not
890         NAUTILUS_WINDOW_TYPE).  Fixed text which erroneously stated that 
891         superclass initializers don't run when an object is 
892         instantiated.  Fixed numerous spelling mistakes.  Minor grammar 
893         edits. (#490637, Adam Dingle)
894
895 2007-11-09  Matthias Clasen <mclasen@redhat.com>
896
897         * glib/gkeyfile.c: Coding style cleanups and doc 
898         improvements.  (#491979, #491982, Areg Beketovski)
899
900 2007-11-09  Matthias Clasen <mclasen@redhat.com>
901
902         * glib/giochannel.c: Coding style cleanups and doc 
903         improvements.  (#491975, Areg Beketovski)
904
905 2007-11-09  Matthias Clasen <mclasen@redhat.com>
906
907         * glib/gmain.c (g_main_context_iteration): Improve the
908         docs.  (#491974, Areg Beketovski)
909
910 2007-11-09  Matthias Clasen <mclasen@redhat.com>
911
912         * glib/gdate.c: Coding style fixes.
913
914 2007-11-09  Matthias Clasen <mclasen@redhat.com>
915
916         * configure.in: Add AM_PROG_CC_C_O.
917
918         * Makefile.am: Remove the install-exec-local hook and use
919         configexecincludedir_DATA instead, in an attempt to avoid
920         automake 1.9 <> 1.10 incompatibilities.
921
922         * glib/Makefile.am: Rename MIRRORING_TAB_SOURCES, since
923         automake 1.10 complains.
924
925 2007-11-09  Matthias Clasen <mclasen@redhat.com>
926
927         * glib/gspawn.c (g_spawn_sync): Improve the docs.  (#491968,
928         Areg Beketovski)
929
930 2007-11-08  Matthias Clasen <mclasen@redhat.com>
931
932         * glib/gmain.c (g_main_context_release): 
933         (g_main_context_acquire):
934         (g_main_context_new): Fix the doc wording.  (#491957, 
935         #491965, #491966, Areg Beketovski)
936
937 2007-11-08  Matthias Clasen <mclasen@redhat.com>
938
939         * glib/gutils.c (g_set_application_name): Add a missing
940         since tag.  (#464259, Mark Doliner)
941
942 2007-11-08  Matthias Clasen <mclasen@redhat.com>
943
944         * glib/goption.c (g_option_context_new): Improve the docs.
945         (#436293, Vincent Untz)
946
947 2007-11-08  Matthias Clasen <mclasen@redhat.com>
948
949         * glib/gmain.c (g_main_loop_quit): Expand the docs 
950         a bit.  (#317775, Søren Sandmann)
951
952 2007-11-08  Matthias Clasen <mclasen@redhat.com>
953         
954         * autogen.sh: Accept automake 1.10, too
955
956         * mkinstalldirs: Temporarily add this script, to fix building
957         from svn.
958
959         * Makefile.am: Use MKDIRS_P instead of mkinstalldirs, add
960         ChangeLog.pre-2-14 and mkinstalldirs to EXTRA_DIST.
961
962 2007-11-08  Matthias Clasen <mclasen@redhat.com>
963
964         * glib/gmarkup.h: Include gslist.h. Pointed out by Michael Natterer.
965
966 2007-11-08  Matthias Clasen <mclasen@redhat.com>
967
968         * glib/gconvert.c (g_convert_with_iconv): Try harder to reset
969         shift state with AIX iconv().  (#467537)
970
971 2007-11-08  Matthias Clasen <mclasen@redhat.com>
972
973         * configure.in:
974         * m4macros/glib-2.0.m4: Require pkg-config 0.16 in configure
975         and in AM_PATH_GLIB_2_0 to be consistent with the use of
976         PKG_PROG_PKG_CONFIG which was introduced in 0.16.  (#418778,
977         Loïc Minier)
978
979 2007-11-08  Matthias Clasen <mclasen@redhat.com>
980
981         * glib/gstrfuncs.c (g_parse_long_long): Don't leave
982         out parameters uninitialized.  (#490061, Benjamin Otte)
983
984 2007-11-07  Matthias Clasen <mclasen@redhat.com>
985
986         * glib/gmain.c (g_main_context_unref): Don't leak the
987         condvar.  (#479724, Areg Beketovski)
988
989 2007-11-07  Matthias Clasen <mclasen@redhat.com>
990
991         * glib/glib.symbols:
992         * glib/gmarkup.[hc] (g_markup_parse_context_get_element_stack): 
993         New function, to get the stack of open elements.  (#452887,
994         Ryan Lortie)
995
996 2007-11-07  Matthias Clasen <mclasen@redhat.com>
997
998         * glib/gkeyfile.[hc]: Make some functions that take
999         a GError return boolean instead of void.  (#375651, Matt Barnes)
1000
1001 2007-11-07  Matthias Clasen <mclasen@redhat.com>
1002         
1003         * autogen.sh: Use automake 1.9
1004
1005         * acinclude.m4:
1006         * configure.in: Move some inter-*.m4 includes from
1007         configure.in to acinclude.m4 to avoid warnings when
1008         using automake 1.9.  (#449937)
1009
1010 2007-11-07  Matthias Clasen <mclasen@redhat.com>
1011
1012         === Branch for 2.14 ===