[glib: 6/9] tests: Add a missing assertion
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 6/9] tests: Add a missing assertion
- Date: Thu, 28 Apr 2022 11:07:36 +0000 (UTC)
commit de5b30df8436f1c0b55bfc7c91a79b985751dd89
Author: Philip Withnall <pwithnall endlessos org>
Date: Thu Apr 28 11:16:25 2022 +0100
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
glib/tests/fileutils.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/glib/tests/fileutils.c b/glib/tests/fileutils.c
index 8363f01394..8197009587 100644
--- a/glib/tests/fileutils.c
+++ b/glib/tests/fileutils.c
@@ -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 ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]