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