forked from AuroraMiddleware/gtk
compare-render: Assert that no error has been set
Much better error message than just the one from the node != NULL assertion in the next line.
This commit is contained in:
parent
58c2bea959
commit
74ab3cdf75
@ -104,6 +104,7 @@ main (int argc, char **argv)
|
|||||||
node = gsk_render_node_deserialize (bytes, &error);
|
node = gsk_render_node_deserialize (bytes, &error);
|
||||||
g_bytes_unref (bytes);
|
g_bytes_unref (bytes);
|
||||||
|
|
||||||
|
g_assert_no_error (error);
|
||||||
g_assert (node != NULL);
|
g_assert (node != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user