diff options
author | Ryan Lortie <desrt@desrt.ca> | 2012-07-05 23:49:22 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2012-07-06 00:19:45 -0400 |
commit | eb971e70889db9505676dde4ba4822fac8fdb3a8 (patch) | |
tree | de58761ec40cba1c8ed5eb8f332c8c07b8c44756 /tests/paths.c | |
parent | 2069109a2dd91d323b40ee07861115757b6b7ce4 (diff) | |
download | dconf-eb971e70889db9505676dde4ba4822fac8fdb3a8.tar.gz |
tests/: convert path test to gtester
Diffstat (limited to 'tests/paths.c')
-rw-r--r-- | tests/paths.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/paths.c b/tests/paths.c index a95530e..143d3fa 100644 --- a/tests/paths.c +++ b/tests/paths.c @@ -82,19 +82,16 @@ test_paths (void) (dconf_is_rel_key (string, NULL) ? 020 : 000) | (dconf_is_rel_dir (string, NULL) ? 040 : 000); - if (flags != cases[i].flags) - { - g_print ("case %i: string '%s' should be %o but is %o", - i, string, cases[i].flags, flags); - g_assert_not_reached (); - } + g_assert_cmphex (flags, ==, cases[i].flags); } } int -main (void) +main (int argc, char **argv) { - test_paths (); + g_test_init (&argc, &argv, NULL); - return 0; + g_test_add_func ("/paths", test_paths); + + return g_test_run (); } |