Merge pull request #110 from smcv/asserts

Consistently call g_assert_no_error before other assertions
tingping/wmclass
Alexander Larsson 2016-01-29 08:52:55 +01:00
commit 3fd50ea3ac
1 changed files with 2 additions and 2 deletions

View File

@ -98,8 +98,8 @@ export_file (const char *path, gboolean unique)
NULL,
&error);
g_object_unref (fd_list);
g_assert (reply != NULL);
g_assert_no_error (error);
g_assert (reply != NULL);
g_variant_get (reply, "(s)", &doc_id);
g_assert (doc_id != NULL);
@ -233,8 +233,8 @@ main (int argc, char **argv)
g_setenv ("XDG_RUNTIME_DIR", outdir, TRUE);
g_spawn_command_line_sync (DOC_PORTAL " -d", NULL, NULL, &exit_status, &error);
g_assert_cmpint (exit_status, ==, 0);
g_assert_no_error (error);
g_assert_cmpint (exit_status, ==, 0);
session_bus = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error);
g_assert_no_error (error);