Ryan Lortie
5e044a943c
typo fix: Dist the data for the test cases
...
change 'dist_hook:' to 'dist-hook:'
2010-08-06 13:11:20 -04:00
Ryan Lortie
b3b7ea8e22
Replace -I with $(glib_INCLUDES) and friends
...
Stop using ad hoc -I in all of our Makefile.am. Use the new variables
instead.
2010-08-06 13:10:34 -04:00
Ryan Lortie
78f7f14b34
Don't dist 'glibconfig.h'
...
This is causing very serious problems when doing out-of-tree builds from
tarballs on architectures that are different from the architecture that
the tarball was created on.
This commit breaks the build in those cases, but I'll fix that in the
next commits.
https://bugzilla.gnome.org/show_bug.cgi?id=626107
2010-08-06 10:53:07 -04:00
Ryan Lortie
25c6bdc22a
error test case: don't double-free the source
...
g_propagate_prefixed_error() frees the source already, don't
g_error_free() it.
2010-08-06 10:29:32 -04:00
Hannes Müller
a1b015f7b7
avoid warning in gutils.h when using gcc with -Wconversion
...
https://bugzilla.gnome.org/show_bug.cgi?id=619026
2010-08-05 23:18:45 +02:00
paul
9f6faaffb6
Add $(top_builddir)/glib to includes
...
This is required to find glibconfig.h during srcdir != builddir builds
2010-08-05 09:08:34 -04:00
Matthias Clasen
008615f999
Test an option handling corner-case
2010-08-05 02:24:26 -04:00
Matthias Clasen
e2657d8dce
Add a not about arguments beginning with dashes
2010-08-05 02:24:25 -04:00
David Zeuthen
5e6f762d61
GVariant: validate that passed string is UTF-8
...
As discussed with Ryan on IRC.
This check is crucial because it guarantees that
g_variant_get_string() will _always_ return valid UTF-8. Except in
cases where the programmer used unsafe API such as
g_variant_new_from_data() and setting @trusted to TRUE.
In fact, this check revealed a flaw in my polkit gdbus port
(lt-polkitd:11632): GLib-CRITICAL **: g_variant_new_string: assertion
`g_utf8_validate (string, len, NULL)' failed
and with this I could easily find the problem by using gdb(1) and
G_DBUS=fatal-warnings.
Without this check we'd pass the non-UTF8 string all the way to the
message bus and the bus would then disconnect us. So instead I was
seeing
g_dbus_connection_real_closed: Remote peer vanished with error:
Underlying GIOStream returned 0 bytes on an async read
(g-io-error-quark, 0). Exiting.
and then SIGTERM as raised by g_dbus_connection_real_closed() and my
polkitd process would exit. This behavior is much harder to debug than
failing early (as this patch implements).
Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-08-03 13:38:50 -04:00
Matthias Clasen
9b96e31968
Don't assert too much
2010-08-03 10:25:54 -04:00
Matthias Clasen
e4b5104003
Move bookmarkfile tests to the test framework
2010-08-03 10:25:54 -04:00
Emmanuele Bassi
b3de028a43
Update the Git ignore files
2010-08-03 14:21:02 +01:00
Mark Wielaard
f8ec75620d
Don't add (extra) DESTDIR to tapsetdir for tapset_DATA.
...
https://bugzilla.gnome.org/show_bug.cgi?id=625876
2010-08-03 08:04:58 -04:00
Stef Walter
e7c7e46cf2
Add comment to g_date_set_time_val about local timezone.
...
Local time zone is used in conversion during g_date_set_time_val().
We now mention this in the documentation.
Fixes bug #625500
2010-08-01 07:22:11 +02:00
Matthias Clasen
ce7463a87b
improve scanner api test coverage
2010-07-31 02:39:53 -04:00
Matthias Clasen
6d41af0f72
Improve tree test coverage
2010-07-31 02:15:03 -04:00
Matthias Clasen
a946577826
Improve keyfile test coverage
2010-07-31 02:14:51 -04:00
Matthias Clasen
ef4690c6c9
Test some GError functionality explicitly
2010-07-31 02:14:28 -04:00
Matthias Clasen
a4d0038c28
Add a test for g_variant_builder_add_parsed
2010-07-31 02:14:01 -04:00
Matthias Clasen
3c0f77a499
Fix a typo
2010-07-31 02:07:38 -04:00
Matthias Clasen
12e47411c3
Improve string test coverage
2010-07-31 00:56:11 -04:00
Matthias Clasen
dd25bdeff1
Improve byte array test coverage
2010-07-31 00:55:57 -04:00
Matthias Clasen
5f89498f07
improve printf tests coverage
2010-07-30 19:51:21 -04:00
Matthias Clasen
9100828185
Improve option context test coverage
2010-07-30 19:51:21 -04:00
Matthias Clasen
027905c27a
Improve array test coverage
2010-07-30 19:51:21 -04:00
Matthias Clasen
03be0d7237
Move markup parse tests to the test framework
2010-07-30 19:51:21 -04:00
Matthias Clasen
60932b2f3d
Improve regex test coverage
2010-07-30 19:51:20 -04:00
Matthias Clasen
154880b2ad
Remove duplicate utf8 strreverse test
...
Also add some tests for find next/prev char.
2010-07-30 19:51:19 -04:00
Matthias Clasen
0e48b7ea7c
Improve strfuncs test coverage a bit
2010-07-30 19:51:19 -04:00
Matthias Clasen
c617e94cf1
Improve option context test coverage a bit
2010-07-30 19:51:19 -04:00
Matthias Clasen
c4dd9fa41b
Move markup collect tests to the test framework
2010-07-30 19:51:19 -04:00
Matthias Clasen
13ac9f94fd
Add some more GFile tests
2010-07-30 19:51:19 -04:00
Matthias Clasen
b4ed2af52f
Improve GNode test coverage a bit
2010-07-30 19:51:19 -04:00
Matthias Clasen
568eeeafe1
Add some logging tests
2010-07-30 19:51:18 -04:00
Matthias Clasen
2b113e4a9a
Silence log handler tests
2010-07-30 19:51:18 -04:00
Matthias Clasen
b91cde6140
Improve tree test coverage
2010-07-30 19:51:18 -04:00
Matthias Clasen
c972d4df64
Move markup escape tests to test framework
2010-07-30 19:51:18 -04:00
Matthias Clasen
a804e22ed0
More pattern tests
2010-07-30 19:51:18 -04:00
Matthias Clasen
d3f0031361
Add tests for g_utf8_strreverse
2010-07-30 19:51:18 -04:00
Matthias Clasen
caa9453b72
Fix a warning
2010-07-30 19:51:18 -04:00
Matthias Clasen
d0750c9d6e
Don't leak in converter test
2010-07-30 19:51:18 -04:00
Matthias Clasen
9d93dc5554
Remove some unused pcre code
2010-07-30 19:51:17 -04:00
Matthias Clasen
9fc3c980cc
Add some volume monitor tests
...
Although not much of this is easily testable.
2010-07-30 19:51:17 -04:00
Matthias Clasen
e5a72ae3c4
Move queue tests to the test framework
2010-07-30 19:51:17 -04:00
Behdad Esfahbod
8f80ff02af
Bug 624968 - div by zero in g_malloc_n family
2010-07-21 16:11:35 -04:00
Tomeu Vizoso
44cf10adce
Add annotations for g_variant_new_strv and g_variant_get_strv
2010-07-15 17:05:00 +02:00
Ryan Lortie
3a8ab85d96
rename configure.in to configure.ac
2010-07-13 11:59:16 -04:00
Ryan Lortie
92df91590f
trivial whitespace fix
2010-07-12 17:31:03 -04:00
Ryan Lortie
7791fce38a
Fix some glib docs warnings
...
Remove some symbols from glib-sections.txt that gtk-doc has no idea
about.
Add proper callback typedefs for GTester (gtk-doc dislikes inline
function types).
Fix some other minor issues.
2010-07-12 16:56:52 -04:00
Matthias Clasen
dc8cf867c8
Don't return FALSE when a pointer is expected
...
Pointed out in bug 623956
2010-07-12 16:35:18 -04:00