Home | History | Annotate | Download | only in tests

Lines Matching full:error

59   { "c:\\windows", NULL, NULL, G_CONVERT_ERROR_NOT_ABSOLUTE_PATH}, /* it's important to get this error on Unix */
180 GError *error;
184 error = NULL;
187 &error);
198 if (error == NULL)
200 g_print ("\ng_filename_to_uri() test %d failed, returned NULL, but didn't set error\n", i);
203 else if (error->domain != G_CONVERT_ERROR)
205 g_print ("\ng_filename_to_uri() test %d failed, returned NULL, set non G_CONVERT_ERROR error\n", i);
208 else if (error->code != to_uri_tests[i].expected_error)
211 i, error->code, to_uri_tests[i].expected_error);
220 if (error)
221 g_print ("Error message: %s\n", error->message);
234 GError *error;
238 error = NULL;
241 &error);
252 if (error == NULL)
254 g_print ("\ng_filename_from_uri() test %d failed, returned NULL, but didn't set error\n", i);
257 else if (error->domain != G_CONVERT_ERROR)
259 g_print ("\ng_filename_from_uri() test %d failed, returned NULL, set non G_CONVERT_ERROR error\n", i);
262 else if (error->code != from_uri_tests[i].expected_error)
265 i, error->code, from_uri_tests[i].expected_error);
356 GError *error;
363 error = NULL;
366 &error);
368 if (error != NULL)
371 error->message);
376 error = NULL;
377 res = g_filename_from_uri (uri, &hostname, &error);
378 if (error != NULL)
381 error->message);