Use g_print to print out --help text in locale encoding. (#469551, Takao
[platform/upstream/glib.git] / ChangeLog
1 2007-11-23  Matthias Clasen  <mclasen@redhat.com>
2
3         * glib/goption.c: Use g_print to print out --help text in 
4         locale encoding.  (#469551, Takao Fujiwara)
5
6 2007-11-22  Matthias Clasen  <mclasen@redhat.com>
7
8         * glib/gkeyfile.c: Set length out param in list-returning functions
9         to 0 when returning NULL.  (#498728, Christian Persch)
10
11 2007-11-21 21:06:47  Tim Janik  <timj@imendio.com>
12
13         * Makefile.decl: initialize automake variables EXTRA_DIST and
14         TEST_PROGS for unconditional appending via += in other makefiles.
15         define recursive test targets: test, test-report, perf-report,
16         full-report, as described here:
17       http://mail.gnome.org/archives/gtk-devel-list/2007-November/msg00000.html
18
19         * Makefile.am:
20         * build/win32/vs8/Makefile.am, build/win32/dirent/Makefile.am:
21         * build/win32/Makefile.am, build/Makefile.am:
22         * docs/Makefile.am, docs/reference/Makefile.am:
23         * docs/reference/glib/Makefile.am, docs/reference/gobject/Makefile.am:
24         * gmodule/Makefile.am, tests/Makefile.am:
25         * tests/refcount/Makefile.am, tests/gobject/Makefile.am:
26         * glib/update-pcre/Makefile.am, glib/libcharset/Makefile.am:
27         * glib/tests/Makefile.am, glib/pcre/Makefile.am:
28         * glib/gnulib/Makefile.am, gobject/Makefile.am, m4macros/Makefile.am:
29         * gthread/Makefile.am, glib/Makefile.am:
30         include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments.
31
32         * glib/tests/Makefile.am: removed example testing rules.
33
34         * glib/tests/testing.c: conditionalized performance and slow tests.
35
36         * glib/gtestutils.h:
37         * glib/gtestutils.c: work around g_test_config_vars not changing its
38         exported value after value assignments, aparently due to symbol aliases.
39
40         * glib/gtester.c: fixed off-by-one error which produced junk in logs.
41
42         * configure.in: check for python >= 2.4 and provide $PYTHON for scripts.
43
44 Tue Nov 20 15:59:55 2007 +0100 Tim Janik
45
46         Renamed gtestframework to gtestutils.
47
48         * glib/glib.h:
49         * glib/Makefile.am: added gtestutils.h to public includes.
50
51         * glib/gtestutils.c: include gtestutils.h.
52
53         * glib/gtestutils.h:
54         * glib/glib.symbols:
55         * glib/tests/testing.c: renamed gtestframework to gtestutils.
56
57         * glib/gtestframework.h: renamed to gtestutils.h.
58
59         * glib/gtestframework.c: renamed to gtestutils.c.
60
61 Tue Nov 20 15:29:34 2007 +0100 Tim Janik
62
63         glib/gtestframework.c: g_test_init(): make warnings and criticals fatal for all test programs.
64
65 Wed Nov 14 20:35:05 2007 +0100 Tim Janik
66
67         gtestframework.c: added test API documentation by Sven Herzberg and Tim Janik.
68
69 Wed Nov 14 19:10:28 2007 +0100 Tim Janik
70
71         gtestframework.[hc]: implemented g_test_queue_destroy() and g_test_queue_unref().
72
73 Fri Nov 9 12:28:52 2007 +0100 Tim Janik
74
75         Added g_test_bug() and related API.
76
77         * gtester.c: handle G_TEST_LOG_MESSAGE and test test message API.
78
79         * gtestframework.h, gtestframework.c: added test message API and convenience
80         API to send test messages about bug URLs.
81
82 Fri Nov 9 11:35:11 2007 +0100 Tim Janik
83
84         Added API to access test framework configuration.
85
86         * gtestframework.h, gtestframework.c: export testing configuration to test
87         programs with g_test_quick(), g_test_perf(), g_test_verbose(), g_test_quiet().
88
89 Thu Nov 8 17:55:09 2007 +0100 Tim Janik
90
91         gtester: implemented logic to handle failing tests, self tests, and validate XML reports.
92
93         * gtester.c: terminate when tests failed. keep XML valid when test cases fail.
94         restart test binaries when tests fail, resuming after the last processed test.
95         support --gtester-selftest to run gtester itself as test program.
96         support --test-arg=<arg> to pass args along to test programs. added
97         main_selftest() which does a simplistic fixture test. fail if exit
98         code of test programs is not 0.
99
100         * gtestframework.h: added G_TEST_LOG_SKIP_CASE test log message type.
101
102         * gtestframework.c: support --GTestSkipCount=<n> to skip a number of tests.
103
104         * tests/Makefile.am: added test-report: for demonstration purposes.
105         added gtester-xmllint-check: and hooked it up into check:, this rule calls
106         gtester as test program, running it's selftest, and then uses xmllint to
107         validate the generate XML test log file.
108
109 Thu Nov 8 14:51:37 2007 +0100 Tim Janik
110
111         gtester: implemented XML logging.
112
113         * glib/gtester.c: log test messages to XML output file. beautified normal test
114         result output.
115
116         * glib/gtestframework.c: fixed GTimer leak.
117
118         * glib/tests/Makefile.am: start gtester with --verbose.
119
120 Thu Nov 8 12:33:31 2007 +0100 Tim Janik
121
122         tests/Makefile.am: execute test programs with gtester, add test: to check:
123
124 Thu Nov 8 12:18:51 2007 +0100 Tim Janik
125
126         Fixed PLT symbol exports for gtestframework.h.
127
128         * glib/glib.symbols: added all exported gtestframework.h symbols.
129
130         * glib/gtestframework.c: include galias.h, galiasdef.c, define __G_TESTFRAMEWORK_C__.
131
132 Thu Nov 8 11:31:12 2007 +0100 Tim Janik
133
134         glib/gtester.c: fixed debugging flag.
135
136 Wed Nov 7 17:56:26 2007 +0100 Tim Janik
137
138         fixed bogus unistd.h include.
139
140 Wed Nov 7 17:53:30 2007 +0100 Tim Janik
141
142         Implemented test log IPC.
143
144         * gtester.c: read and decode log messages from test binary child processes.
145         fixed GIOChannel and child watch handling to process all messages and avoid
146         hangs. pass --verbose and --quiet on to children, default to --quiet.
147
148         * gtestframework.h: export g_test_log_type_name().
149
150         * gtestframework.c: send test log to --GTestLogFD=<fd> if given, removed
151         bogus -o-option.
152
153 Tue Nov 6 20:07:44 2007 +0100 Tim Janik
154
155         gtester.c: support test case listing through gtester.
156
157 Tue Nov 6 20:01:06 2007 +0100 Tim Janik
158
159         gtestframework.c: fixed testpath matches for automatic root suite.
160
161 Tue Nov 6 19:50:33 2007 +0100 Tim Janik
162
163         gtester.c: adapted to become a rudimentary test binary launcher.
164
165         * gtester.c: increased read buffer size to match common unix pipe buffer size.
166         added argument parsing and usage. changed io handling to capture and replicate
167         stdout. fixed io handlers to be cleaned up when the child process exits (catch
168         G_IO_ERR | G_IO_HUP). we now use pending/iteration instead of a main loop
169         structure, to keep running until the child process exits and all io has been
170         processed. launch the test binaries given on the command line. don't quit when
171         a child couldn't be launched but --keep-going was specified.
172
173 Tue Nov 6 17:11:37 2007 +0100 Tim Janik
174
175         Integrated gtester program into build process.
176
177         * Makefile.am: build and install gtester binary.
178
179         * gtester.c: fixed up coding style and removed hard wired test coded.
180
181 Tue Nov 6 16:12:32 2007 +0100 Sven Herzberg
182
183         glib/gtester.c:Small -Wall fix
184
185 Tue Nov 6 16:05:06 2007 +0100 Sven Herzberg
186
187         glib/gtester.c:Implemented nonblocking reading properly now
188
189 Mon Nov 5 13:53:23 2007 +0100 Sven Herzberg
190
191         glib/gtester.c:Quit the application when the output is parsed completely, not just the process finished
192
193 Mon Nov 5 12:00:16 2007 +0100 Sven Herzberg
194
195         glib/gtester.c:Read the output of the child process
196
197 Mon Nov 5 11:50:59 2007 +0100 Sven Herzberg
198
199         glib/gtester.c:Use g_spawn_async_with_pipes()
200
201 Mon Nov 5 11:50:08 2007 +0100 Sven Herzberg
202
203         glib/gtester.c:Spawn a process async and quit gtester after the child process exited
204
205 Mon Nov 5 11:30:45 2007 +0100 Sven Herzberg
206
207         glib/gtester.c:Added a first revision of gtester
208
209 Tue Nov 6 16:47:06 2007 +0100 Tim Janik
210
211         Implemented test log serialization.
212
213         * glib/gtestframework.h: added g_test_log*() API.
214
215         * glib/gtestframework.c: implement test log serialization.
216
217 Tue Nov 6 14:24:54 2007 +0100 Tim Janik
218
219         Implemented test logging basics.
220
221         * glib/gtestframework.c: added --debug-log and --verbose, implemented
222         test information logging.
223
224         * testing.c: test g_test_maximized_result() and g_test_minimized_result().
225
226 Tue Nov 6 11:52:14 2007 +0100 Tim Janik
227
228         Implemented g_test_timer*().
229
230         * gtestframework.c: implemented g_test_timer*().
231
232         * tests/testing.c: added a g_test_timer*() test.
233
234 Mon Nov 5 18:28:24 2007 +0100 Tim Janik
235
236         Implemented support for testpaths.
237
238         * gtestframework.c: implemented g_test_add_vtable() and g_test_add_func().
239
240         * tests/testing.c: use g_test_add() and g_test_add_func() to majorly simplify main().
241
242 Mon Nov 5 15:56:42 2007 +0100 Tim Janik
243
244         testing.c: added tests for the g_test_rand*() API.
245
246 Mon Nov 5 15:55:38 2007 +0100 Tim Janik
247
248         Implemented g_test_rand*().
249
250         * gtestframework.h: fixed g_assert_cmp*() to evaluate arguments only once.
251         added g_assert_cmpuint(). completed g_test_rand*() to cover bits, ints,
252         doubles and ranges.
253
254         * gtestframework.c: fixed "--seed" option and implemented g_test_rand*().
255
256 Mon Nov 5 15:51:43 2007 +0100 Tim Janik
257
258         testing.c: added tests for g_assert_cmphex() and forked test traps.
259
260 Mon Nov 5 15:10:18 2007 +0100 Tim Janik
261
262         Implemented g_test_trap_fork() API.
263
264         * gtestframework.h: added g_assert_cmphex(). reworked g_test_trap*() API.
265
266         * gtestframework.c: implemented g_test_trap_fork() API.
267
268 Thu Nov 1 15:05:07 2007 +0100 Tim Janik
269
270         * glib/gtestframework.c:
271
272         that match a given test path.
273         (g_test_run_suite): run suite only if it matches the existing test paths.
274
275         * glib/tests/testing.c: minor rename.
276
277 Thu Nov 1 13:45:55 2007 +0100 Tim Janik
278
279         GTest framework started.
280
281         * glib/gtestframework.h: testing framework API as proposed on gtk-devel-list.
282         includes elaborate assertions, performance report functions, test traps,
283         test timer, test random numbers, teardoiwn garbage collection functions
284         and general test case / test suite management APIs.
285
286         * glib/gtestframework.c: first test framework implementation. already covers
287         some test suite management APIs and assertion message implementations.
288
289         * glib/tests/testing.c: test program for the testing framework.
290
291         * glib/tests/Makefile.am: complie testing.c as test. run all tests as part of
292         make test:.
293
294 Wed Oct 31 15:42:48 2007 +0100 Tim Janik
295
296         glib/Makefile.am: build tests/ subdir after building libglib.
297
298 Tue Oct 30 16:17:32 2007 +0100 Tim Janik
299
300         Fixed up internal 'g_test*' names.
301
302         * refcount/signals.c:
303         * refcount/objects.c:
304         * refcount/objects2.c:
305         * refcount/closures.c:
306         * refcount/properties.c:
307         * refcount/properties2.c: changed namespace prefix from g_test_* to my_test_*
308         to not clash with newly introduced g_test* API in glib.
309
310 Tue Oct 30 14:41:26 2007 +0100 Tim Janik
311
312         Added gtestframework.[hc] and glib/tests/.
313
314 2007-11-20  Sven Neumann  <sven@gimp.org>
315
316         * glib/gerror.c (g_error_add_prefix): use g_strconcat() instead of
317         g_strjoin() to concatenate two strings.
318
319 2007-11-19  Marco Barisione  <marco@barisione.org>
320
321         * glib/gregex.c: When the compilation of a pattern fails in the error
322         message use the character offset and not the byte offset.
323
324         * glib/gregex.c: Pass an unsigned long instead of an int to
325         pcre_fullinfo() to avoid problems on 64-bit systems (#498113, Kouhei
326         Sutou)
327
328 2007-11-19 10:30:33  Tim Janik  <timj@imendio.com>
329
330         * configure.in: updated version number to 2.15.0 for development.
331
332 2007-11-18  Matthias Clasen  <mclasen@redhat.com>
333
334         * glib/gbase64.c: Documentation improvements.  (#496518,
335         Stefan Schulze Frielinghaus)
336
337 2007-11-18  Matthias Clasen  <mclasen@redhat.com>
338
339         * configure.in: Check whether assembler supports numerical local
340         labels.  
341
342         * glib/gatomic.c: Fix powerpc implementation of atomic ops for 
343         platforms where the assembler doesn't support numerical local
344         labels.  (#445362)
345
346 2007-11-15  Ryan Lortie  <desrt@desrt.ca>
347
348         * docs/reference/glib/tmpl/markup.sgml:
349         * glib/gmarkup.h:
350         * glib/gmarkup.c: new flag G_MARKUP_PREFIX_ERROR_POSITION to cause the
351         parser to prepend location information (ie: "Error on line %d, char
352         %d:") to errors generated by the GMarkupParser callbacks.
353
354         Closes #496046.
355
356 2007-11-15  Ryan Lortie  <desrt@desrt.ca>
357
358         * docs/reference/glib/glib-sections.txt:
359         * glib/glib.symbols:
360         * glib/gerror.h:
361         * glib/gerror.c: new functions g_prefix_error and
362         g_propagate_prefixed_error.
363
364 2007-11-13  Cody Russell  <bratsche@gnome.org>
365
366         * docs/reference/gobject/gobject-docs.sgml:
367         * docs/reference/gobject/tut_gsignal.xml:
368         * docs/reference/gobject/tut_gtype.xml:
369         * docs/reference/gobject/tut_intro.xml:
370         * docs/reference/gobject/tut_tools.xml:
371         * docs/reference/gobject/tut_howto.xml:
372         * docs/reference/gobject/tut_gobject.xml: Documentation fixes.
373         Recommend macro type names such as NAUTILUS_TYPE_WINDOW (not
374         NAUTILUS_WINDOW_TYPE).  Fixed text which erroneously stated that 
375         superclass initializers don't run when an object is 
376         instantiated.  Fixed numerous spelling mistakes.  Minor grammar 
377         edits. (#490637, Adam Dingle)
378
379 2007-11-09  Matthias Clasen <mclasen@redhat.com>
380
381         * glib/gkeyfile.c: Coding style cleanups and doc 
382         improvements.  (#491979, #491982, Areg Beketovski)
383
384 2007-11-09  Matthias Clasen <mclasen@redhat.com>
385
386         * glib/giochannel.c: Coding style cleanups and doc 
387         improvements.  (#491975, Areg Beketovski)
388
389 2007-11-09  Matthias Clasen <mclasen@redhat.com>
390
391         * glib/gmain.c (g_main_context_iteration): Improve the
392         docs.  (#491974, Areg Beketovski)
393
394 2007-11-09  Matthias Clasen <mclasen@redhat.com>
395
396         * glib/gdate.c: Coding style fixes.
397
398 2007-11-09  Matthias Clasen <mclasen@redhat.com>
399
400         * configure.in: Add AM_PROG_CC_C_O.
401
402         * Makefile.am: Remove the install-exec-local hook and use
403         configexecincludedir_DATA instead, in an attempt to avoid
404         automake 1.9 <> 1.10 incompatibilities.
405
406         * glib/Makefile.am: Rename MIRRORING_TAB_SOURCES, since
407         automake 1.10 complains.
408
409 2007-11-09  Matthias Clasen <mclasen@redhat.com>
410
411         * glib/gspawn.c (g_spawn_sync): Improve the docs.  (#491968,
412         Areg Beketovski)
413
414 2007-11-08  Matthias Clasen <mclasen@redhat.com>
415
416         * glib/gmain.c (g_main_context_release): 
417         (g_main_context_acquire):
418         (g_main_context_new): Fix the doc wording.  (#491957, 
419         #491965, #491966, Areg Beketovski)
420
421 2007-11-08  Matthias Clasen <mclasen@redhat.com>
422
423         * glib/gutils.c (g_set_application_name): Add a missing
424         since tag.  (#464259, Mark Doliner)
425
426 2007-11-08  Matthias Clasen <mclasen@redhat.com>
427
428         * glib/goption.c (g_option_context_new): Improve the docs.
429         (#436293, Vincent Untz)
430
431 2007-11-08  Matthias Clasen <mclasen@redhat.com>
432
433         * glib/gmain.c (g_main_loop_quit): Expand the docs 
434         a bit.  (#317775, Søren Sandmann)
435
436 2007-11-08  Matthias Clasen <mclasen@redhat.com>
437         
438         * autogen.sh: Accept automake 1.10, too
439
440         * mkinstalldirs: Temporarily add this script, to fix building
441         from svn.
442
443         * Makefile.am: Use MKDIRS_P instead of mkinstalldirs, add
444         ChangeLog.pre-2-14 and mkinstalldirs to EXTRA_DIST.
445
446 2007-11-08  Matthias Clasen <mclasen@redhat.com>
447
448         * glib/gmarkup.h: Include gslist.h. Pointed out by Michael Natterer.
449
450 2007-11-08  Matthias Clasen <mclasen@redhat.com>
451
452         * glib/gconvert.c (g_convert_with_iconv): Try harder to reset
453         shift state with AIX iconv().  (#467537)
454
455 2007-11-08  Matthias Clasen <mclasen@redhat.com>
456
457         * configure.in:
458         * m4macros/glib-2.0.m4: Require pkg-config 0.16 in configure
459         and in AM_PATH_GLIB_2_0 to be consistent with the use of
460         PKG_PROG_PKG_CONFIG which was introduced in 0.16.  (#418778,
461         Loïc Minier)
462
463 2007-11-08  Matthias Clasen <mclasen@redhat.com>
464
465         * glib/gstrfuncs.c (g_parse_long_long): Don't leave
466         out parameters uninitialized.  (#490061, Benjamin Otte)
467
468 2007-11-07  Matthias Clasen <mclasen@redhat.com>
469
470         * glib/gmain.c (g_main_context_unref): Don't leak the
471         condvar.  (#479724, Areg Beketovski)
472
473 2007-11-07  Matthias Clasen <mclasen@redhat.com>
474
475         * glib/glib.symbols:
476         * glib/gmarkup.[hc] (g_markup_parse_context_get_element_stack): 
477         New function, to get the stack of open elements.  (#452887,
478         Ryan Lortie)
479
480 2007-11-07  Matthias Clasen <mclasen@redhat.com>
481
482         * glib/gkeyfile.[hc]: Make some functions that take
483         a GError return boolean instead of void.  (#375651, Matt Barnes)
484
485 2007-11-07  Matthias Clasen <mclasen@redhat.com>
486         
487         * autogen.sh: Use automake 1.9
488
489         * acinclude.m4:
490         * configure.in: Move some inter-*.m4 includes from
491         configure.in to acinclude.m4 to avoid warnings when
492         using automake 1.9.  (#449937)
493
494 2007-11-07  Matthias Clasen <mclasen@redhat.com>
495
496         === Branch for 2.14 ===