gtestutils: add "options" to g_test_init(), make option-argv0 use gtester
authorDan Winship <danw@gnome.org>
Sun, 10 Nov 2013 18:23:15 +0000 (13:23 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 23 Nov 2013 05:43:45 +0000 (00:43 -0500)
commit41eacde63071d52bab52ee721efb12a279b14198
tree70ad8d9f6bd004bae9329de42a5efc2f67b812a8
parentf733075cd13504fa1977a433cbad463f8900828e
gtestutils: add "options" to g_test_init(), make option-argv0 use gtester

Declare that the previously-unused "..." argument to g_test_init() is
actually a NULL-terminated list of strings indicating testing options,
and add an option "no_g_set_prgname", which keeps g_test_init() from
calling g_set_prgname(). Then we can port glib/tests/option-argv0 to
use gtester, by passing that option.

https://bugzilla.gnome.org/show_bug.cgi?id=711796
glib/gtestutils.c
glib/gtestutils.h
glib/tests/option-argv0.c