[tracker-miners/wip/carlosg/ci-updates] tests: Change tested non-writable directory in tracker-file-utils-test
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/ci-updates] tests: Change tested non-writable directory in tracker-file-utils-test
- Date: Thu, 12 Aug 2021 10:53:44 +0000 (UTC)
commit a6b98bd5cfec71dd701107ed03438fb01ee7c546
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Aug 12 12:52:06 2021 +0200
tests: Change tested non-writable directory in tracker-file-utils-test
tests/libtracker-miners-common/tracker-file-utils-test.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/tests/libtracker-miners-common/tracker-file-utils-test.c
b/tests/libtracker-miners-common/tracker-file-utils-test.c
index 24551941a..851f9a198 100644
--- a/tests/libtracker-miners-common/tracker-file-utils-test.c
+++ b/tests/libtracker-miners-common/tracker-file-utils-test.c
@@ -377,13 +377,11 @@ test_file_exists_and_writable ()
g_assert_true (tracker_path_has_write_access_or_was_created (path));
g_assert_true (g_file_test (path, G_FILE_TEST_EXISTS));
- /* This time exists and has write access */
+ /* Exists and has write access */
g_assert_true (tracker_path_has_write_access_or_was_created (path));
- g_assert_cmpint (chmod (path, S_IRUSR & S_IRGRP), ==, 0);
-
/* Exists but is not writable */
- g_assert_true (!tracker_path_has_write_access_or_was_created (path));
+ g_assert_true (!tracker_path_has_write_access_or_was_created ("/etc"));
/* Doesn't exist and cannot be created */
g_assert_true (!tracker_path_has_write_access_or_was_created ("/var/log/tracker-test"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]