Ryan Lortie
235820d0ef
GVariant: Check for size == 0 in get_bytestring
...
And add a test from David that shows the problem.
Closes #629698
2010-09-14 14:56:38 -04:00
Thiago Santos
875ad12345
gdatetime: Use proleptic gregorian
...
Use Proleptic Gregorian calendar instead of the Julian calendar
as the internal representation.
https://bugzilla.gnome.org/show_bug.cgi?id=50076
Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
2010-09-06 11:50:30 +01:00
Emmanuele Bassi
9a61fb2c64
datetime: Re-use add_dmy()
...
Avoid code duplication.
2010-08-26 12:58:19 +01:00
Tor Lillqvist
3c86a77ae5
Fix Win32 build
2010-08-26 12:41:46 +03:00
Matthias Clasen
8803182f4a
Guarantee that g_get_tmp_dir () doesn't return an empty string
...
If it does, g_file_open_tmp() would be in trouble. Pointed
out by Morten Welinder in bug 627969.
2010-08-25 20:04:45 -04:00
Emmanuele Bassi
026375b395
datetime: Avoid excessive copies in add_full()
...
The current implementation of g_date_time_add_full() creates multiple
GDateTime temporary objects and unrefs them immediately; even with the
slice allocator this could result in a performance bottleneck,
especially if the atomic integer operations fall back to slow paths.
We can isolate the components of the add_full() operation and create
internal modifiers that operate on an existing GDateTime; this brings
down the number of GDateTime copies created from six to one.
While at it, the test suite for add_full() should have more checks for
roll-over of months and days.
Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
2010-08-25 23:04:42 +01:00
Emmanuele Bassi
0a59ab6e85
datetime: Use %Z for the timezone name
...
We should try and follow strftime(3) for the format control characters
as much as possible.
2010-08-25 12:14:04 +01:00
Thiago Santos
e1f13ee9ed
Add GDateTime to GLib
...
GDateTime is an opaque data type containing a date and time
representation. It's immutable once created and reference
counted.
https://bugzilla.gnome.org/show_bug.cgi?id=50076
Based on the code by: Christian Hergert <chris@dronelabs.com>
Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
2010-08-24 23:41:21 +01:00
Matthias Clasen
780d6bfa88
Improve testutils test coverage
2010-08-23 00:38:19 -04:00
Matthias Clasen
fa6926e5d4
Improve printf test coverage
2010-08-23 00:38:19 -04:00
Matthias Clasen
7d970fadbc
Improve GDate test coverate
2010-08-23 00:38:19 -04:00
Dan Winship
8f5ec0dad3
Fix misc compiler warnings in (mostly) test programs
2010-08-19 18:24:53 -04:00
Christian Persch
a35efb0939
G_OPTION_FLAG_NO_ARG is only for callback options
...
Bug #627252 .
2010-08-18 15:32:07 +02:00
Matthias Clasen
e02571e93b
Add bug references to some tests
2010-08-13 21:23:23 -04:00
Matthias Clasen
c9916d64b1
Improve regex test coverage
2010-08-08 21:32:03 -04:00
Matthias Clasen
bbd1d2a724
Improve regex test coverage
2010-08-08 01:12:05 -04:00
Ryan Lortie
80046f36e0
gitignore update
2010-08-06 16:42:36 -04:00
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
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
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
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
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
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
d0750c9d6e
Don't leak in converter test
2010-07-30 19:51:18 -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