IIUC the call to `gtk_init_func()` is not inside a test, so `g_test_skip()` will do nothing. The example you pointed out is inside a function that is registered as a test. And that still leaves the question of what to return to your test environment, pass or fail. As I said, returning pass when none of the test ran isn't useful.