[tracker-miners/wip/carlosg/coverity-fixes: 15/16] tests: Check g_remove() call return value
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/coverity-fixes: 15/16] tests: Check g_remove() call return value
- Date: Tue, 15 Sep 2020 14:30:41 +0000 (UTC)
commit 04791aceef0855f147e0f2511ec89b5835dfbdb9
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Sep 7 19:04:32 2020 +0200
tests: Check g_remove() call return value
Spotted by Coverity
CID: #162188
tests/libtracker-miners-common/tracker-file-utils-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/libtracker-miners-common/tracker-file-utils-test.c
b/tests/libtracker-miners-common/tracker-file-utils-test.c
index 1aebf0ba7..6a011ccd3 100644
--- a/tests/libtracker-miners-common/tracker-file-utils-test.c
+++ b/tests/libtracker-miners-common/tracker-file-utils-test.c
@@ -399,7 +399,7 @@ test_file_exists_and_writable ()
/* Doesn't exist and cannot be created */
g_assert_true (!tracker_path_has_write_access_or_was_created ("/var/log/tracker-test"));
- g_remove (path);
+ g_assert_cmpint (g_remove (path), ==, 0);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]