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