diff options
author | Dhanuka Warusadura <csx@tuta.io> | 2021-03-31 13:02:32 +0530 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2021-03-31 10:59:04 +0000 |
commit | 7e713cf65aaf42af3bc9ae0457675766a08e1df0 (patch) | |
tree | 6203704a6d5a6c02bc6417620375f0e8d0673340 /libsecret/test-methods.c | |
parent | 127f326a2d0d47d51b7d9aa4a8225d09fa981cd3 (diff) | |
download | libsecret-7e713cf65aaf42af3bc9ae0457675766a08e1df0.tar.gz |
Fix issues flagged by static analyzers
These changes specifically fix the issues flagged by clang-analyzer.
Fixes: #59
Diffstat (limited to 'libsecret/test-methods.c')
-rw-r--r-- | libsecret/test-methods.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libsecret/test-methods.c b/libsecret/test-methods.c index a1cc595..121ebd5 100644 --- a/libsecret/test-methods.c +++ b/libsecret/test-methods.c @@ -727,6 +727,7 @@ test_store_sync (Test *test, ret = secret_service_store_sync (test->service, &MOCK_SCHEMA, attributes, collection_path, "New Item Label", value, NULL, &error); + g_assert_true (ret); g_assert_no_error (error); secret_value_unref (value); g_hash_table_unref (attributes); @@ -776,10 +777,12 @@ test_store_replace (Test *test, ret = secret_service_store_sync (test->service, &MOCK_SCHEMA, attributes, collection_path, "New Item Label", value, NULL, &error); + g_assert_true (ret); g_assert_no_error (error); ret = secret_service_store_sync (test->service, &MOCK_SCHEMA, attributes, collection_path, "Another Label", value, NULL, &error); + g_assert_true (ret); g_assert_no_error (error); secret_value_unref (value); g_hash_table_unref (attributes); @@ -829,6 +832,7 @@ test_store_async (Test *test, egg_test_wait (); ret = secret_service_store_finish (test->service, result, &error); + g_assert_true (ret); g_assert_no_error (error); g_object_unref (result); @@ -877,6 +881,7 @@ test_store_no_default (Test *test, ret = secret_service_store_sync (test->service, &MOCK_SCHEMA, attributes, SECRET_COLLECTION_DEFAULT, "New Item Label", value, NULL, &error); + g_assert_true (ret); g_assert_no_error (error); secret_value_unref (value); g_hash_table_unref (attributes); |