2007-11-23 Matthias Clasen <mclasen@redhat.com>
* glib/gbase64.c (g_base64_encode): Don't refuse to encode
a single byte. (Milan Crha)
* tests/base64-test.c: Test encoding short strings.
svn path=/trunk/; revision=5919
2007-11-23 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c: Use g_print to print out --help text in
locale encoding. (#469551, Takao Fujiwara)
svn path=/trunk/; revision=5916
2007-11-22 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c: Set length out param in list-returning functions
to 0 when returning NULL. (#498728, Christian Persch)
svn path=/trunk/; revision=5915
2007-11-21 21:06:47 Tim Janik <timj@imendio.com>
* Makefile.decl: initialize automake variables EXTRA_DIST and
TEST_PROGS for unconditional appending via += in other makefiles.
define recursive test targets: test, test-report, perf-report,
full-report, as described here:
http://mail.gnome.org/archives/gtk-devel-list/2007-November/msg00000.html
* Makefile.am:
* build/win32/vs8/Makefile.am, build/win32/dirent/Makefile.am:
* build/win32/Makefile.am, build/Makefile.am:
* docs/Makefile.am, docs/reference/Makefile.am:
* docs/reference/glib/Makefile.am, docs/reference/gobject/Makefile.am:
* gmodule/Makefile.am, tests/Makefile.am:
* tests/refcount/Makefile.am, tests/gobject/Makefile.am:
* glib/update-pcre/Makefile.am, glib/libcharset/Makefile.am:
* glib/tests/Makefile.am, glib/pcre/Makefile.am:
* glib/gnulib/Makefile.am, gobject/Makefile.am, m4macros/Makefile.am:
* gthread/Makefile.am, glib/Makefile.am:
include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments.
* glib/tests/Makefile.am: removed example testing rules.
* glib/tests/testing.c: conditionalized performance and slow tests.
* glib/gtestutils.h:
* glib/gtestutils.c: work around g_test_config_vars not changing its
exported value after value assignments, aparently due to symbol aliases.
* glib/gtester.c: fixed off-by-one error which produced junk in logs.
* configure.in: check for python >= 2.4 and provide $PYTHON for scripts.
svn path=/trunk/; revision=5914
* gtester.c: handle G_TEST_LOG_MESSAGE and test test message API.
* gtestframework.h, gtestframework.c: added test message API and convenience
API to send test messages about bug URLs.
svn path=/trunk/; revision=5906
* gtester.c: terminate when tests failed. keep XML valid when test cases fail.
restart test binaries when tests fail, resuming after the last processed test.
support --gtester-selftest to run gtester itself as test program.
support --test-arg=<arg> to pass args along to test programs. added
main_selftest() which does a simplistic fixture test. fail if exit
code of test programs is not 0.
* gtestframework.h: added G_TEST_LOG_SKIP_CASE test log message type.
* gtestframework.c: support --GTestSkipCount=<n> to skip a number of tests.
* tests/Makefile.am: added test-report: for demonstration purposes.
added gtester-xmllint-check: and hooked it up into check:, this rule calls
gtester as test program, running it's selftest, and then uses xmllint to
validate the generate XML test log file.
svn path=/trunk/; revision=5904
* glib/gtester.c: log test messages to XML output file. beautified normal test
result output.
* glib/gtestframework.c: fixed GTimer leak.
* glib/tests/Makefile.am: start gtester with --verbose.
svn path=/trunk/; revision=5903
* gtester.c: read and decode log messages from test binary child processes.
fixed GIOChannel and child watch handling to process all messages and avoid
hangs. pass --verbose and --quiet on to children, default to --quiet.
* gtestframework.h: export g_test_log_type_name().
* gtestframework.c: send test log to --GTestLogFD=<fd> if given, removed
bogus -o-option.
svn path=/trunk/; revision=5898
* gtester.c: increased read buffer size to match common unix pipe buffer size.
added argument parsing and usage. changed io handling to capture and replicate
stdout. fixed io handlers to be cleaned up when the child process exits (catch
G_IO_ERR | G_IO_HUP). we now use pending/iteration instead of a main loop
structure, to keep running until the child process exits and all io has been
processed. launch the test binaries given on the command line. don't quit when
a child couldn't be launched but --keep-going was specified.
svn path=/trunk/; revision=5895
* glib/gtestframework.c: added --debug-log and --verbose, implemented
test information logging.
* testing.c: test g_test_maximized_result() and g_test_minimized_result().
svn path=/trunk/; revision=5885
* gtestframework.c: implemented g_test_add_vtable() and g_test_add_func().
* tests/testing.c: use g_test_add() and g_test_add_func() to majorly simplify main().
svn path=/trunk/; revision=5883
* glib/gtestframework.c:
that match a given test path.
(g_test_run_suite): run suite only if it matches the existing test paths.
* glib/tests/testing.c: minor rename.
svn path=/trunk/; revision=5878
* glib/gtestframework.h: testing framework API as proposed on gtk-devel-list.
includes elaborate assertions, performance report functions, test traps,
test timer, test random numbers, teardoiwn garbage collection functions
and general test case / test suite management APIs.
* glib/gtestframework.c: first test framework implementation. already covers
some test suite management APIs and assertion message implementations.
* glib/tests/testing.c: test program for the testing framework.
* glib/tests/Makefile.am: complie testing.c as test. run all tests as part of
make test:.
svn path=/trunk/; revision=5877
* refcount/signals.c:
* refcount/objects.c:
* refcount/objects2.c:
* refcount/closures.c:
* refcount/properties.c:
* refcount/properties2.c: changed namespace prefix from g_test_* to my_test_*
to not clash with newly introduced g_test* API in glib.
svn path=/trunk/; revision=5875
2007-11-20 Sven Neumann <sven@gimp.org>
* glib/gerror.c (g_error_add_prefix): use g_strconcat() instead of
g_strjoin() to concatenate two strings.
svn path=/trunk/; revision=5873
2007-11-19 Marco Barisione <marco@barisione.org>
* glib/gregex.c: Pass an unsigned long instead of an int to
pcre_fullinfo() to avoid problems on 64-bit systems
svn path=/trunk/; revision=5869