Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChristian Kamm <mail@ckamm.de>2018-01-11 12:51:42 +0300
committerckamm <mail@ckamm.de>2018-01-17 17:05:50 +0300
commit4337e8532e28c1156cff95b84d592041553072e2 (patch)
treecea2c3b068c7941337f977185e325dede3ce811f /test
parent4895b848c8a8b188c12b4be144beace0874a60da (diff)
Exclude matching: Speedup the full-path traversal case
Previously we'd use the full regex when the bname triggered a full-path matching to take place. Now we have a simplified full-traversal regex for this case that can be significantly faster to apply. Triggered by #5017 but doesn't actually solve it.
Diffstat (limited to 'test')
-rw-r--r--test/csync/csync_tests/check_csync_exclude.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/csync/csync_tests/check_csync_exclude.cpp b/test/csync/csync_tests/check_csync_exclude.cpp
index 41f3261d5..f719aa4aa 100644
--- a/test/csync/csync_tests/check_csync_exclude.cpp
+++ b/test/csync/csync_tests/check_csync_exclude.cpp
@@ -118,10 +118,13 @@ static void check_csync_exclude_add(void **)
assert_true(excludedFiles->_allExcludes.contains("/tmp/check_csync1/*"));
assert_true(excludedFiles->_fullRegexFile.pattern().contains("csync1"));
- assert_false(excludedFiles->_bnameActivationRegexFile.pattern().contains("csync1"));
+ assert_true(excludedFiles->_fullTraversalRegexFile.pattern().contains("csync1"));
+ assert_false(excludedFiles->_bnameTraversalRegexFile.pattern().contains("csync1"));
excludedFiles->addManualExclude("foo");
- assert_true(excludedFiles->_bnameActivationRegexFile.pattern().contains("foo"));
+ assert_true(excludedFiles->_bnameTraversalRegexFile.pattern().contains("foo"));
+ assert_true(excludedFiles->_fullRegexFile.pattern().contains("foo"));
+ assert_false(excludedFiles->_fullTraversalRegexFile.pattern().contains("foo"));
}
static void check_csync_excluded(void **)