summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2020-09-07 17:45:24 +0200
committerCarlos Garnacho <carlosg@gnome.org>2020-09-14 12:14:28 +0200
commit574b2ce8cff250e5fa832c7dab2458f33503fc80 (patch)
treeab5be45213767b5c6d79f1ea5ad680b9fe4423bd
parent779318d1f670453e0e59d3c766e9dc0a90b988b5 (diff)
downloadtracker-574b2ce8cff250e5fa832c7dab2458f33503fc80.tar.gz
tests: Silence check
Coverity seems to deem it possible to leak a variable after ensuring it is NULL. Assert NULLability harder. CID: #1496664
-rw-r--r--tests/libtracker-common/tracker-file-utils-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libtracker-common/tracker-file-utils-test.c b/tests/libtracker-common/tracker-file-utils-test.c
index aa6cbf29f..a508386fb 100644
--- a/tests/libtracker-common/tracker-file-utils-test.c
+++ b/tests/libtracker-common/tracker-file-utils-test.c
@@ -292,7 +292,7 @@ test_file_utils_open_close ()
tracker_file_close (f, FALSE);
f = tracker_file_open ("./file-does-NOT-exist");
- g_assert_true (!f);
+ g_assert_null (f);
}
static void