mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-14 05:16:18 +01:00
tests: Add a missing assertion
This fixes a warning about a dead store to `newpath` from scan-build. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #1767
This commit is contained in:
parent
1d6c46a0ac
commit
de5b30df84
@ -1856,6 +1856,7 @@ test_read_link (void)
|
|||||||
g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL,
|
g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL,
|
||||||
"*assertion*!= NULL*");
|
"*assertion*!= NULL*");
|
||||||
newpath = g_file_read_link (NULL, &error);
|
newpath = g_file_read_link (NULL, &error);
|
||||||
|
g_assert_null (newpath);
|
||||||
g_test_assert_expected_messages ();
|
g_test_assert_expected_messages ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user