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:
Philip Withnall 2022-04-28 11:16:25 +01:00
parent 1d6c46a0ac
commit de5b30df84

View File

@ -1856,6 +1856,7 @@ test_read_link (void)
g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL,
"*assertion*!= NULL*");
newpath = g_file_read_link (NULL, &error);
g_assert_null (newpath);
g_test_assert_expected_messages ();
}