Commit 13ece4ee authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Make gtk_test_init work without assertions

The g_test_init macro 'helpfully' refuses to work when
assertions are disabled. So we just use the function.
parent 6e40f4f3
...@@ -80,7 +80,10 @@ gtk_test_init (int *argcp, ...@@ -80,7 +80,10 @@ gtk_test_init (int *argcp,
char ***argvp, char ***argvp,
...) ...)
{ {
g_test_init (argcp, argvp, NULL); /* g_test_init is defined as a macro that aborts if assertions
* are disabled. We don't want that, so we call the function.
*/
(g_test_init) (argcp, argvp, NULL);
gtk_disable_setlocale(); gtk_disable_setlocale();
setlocale (LC_ALL, "en_US.UTF-8"); setlocale (LC_ALL, "en_US.UTF-8");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment