convert: Improve test coverage
authorMatthias Clasen <mclasen@redhat.com>
Sat, 7 Apr 2012 15:23:47 +0000 (11:23 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 8 Apr 2012 14:24:50 +0000 (10:24 -0400)
commitcbeecdc4ae5e25e94e694f0503e42386572c5a25
treeab4ac34fdc09da205c3de3c79d9036f3d3162a61
parent7d489acecc4d3e293660d59a942e686776d6b2b4
convert: Improve test coverage

Add a test that excercises the 'no conversion' code path.
This uncovered that we don't treat errno properly in this path,
and as a consequence, the returned error code is unreliable.
glib/tests/convert.c