Fix check_csync_exclude test
authorOlivier Goffart <ogoffart@woboq.com>
Mon, 3 Jul 2017 14:42:31 +0000 (16:42 +0200)
committerOlivier Goffart <ogoffart@woboq.com>
Mon, 3 Jul 2017 15:26:29 +0000 (17:26 +0200)
Commit 4697f0274f282cafd28cbad07066efb397dbf21b remove .htaccess from
the sync-exclude.lst, so use another known excluded pattern

csync/tests/csync_tests/check_csync_exclude.c

index bd4813c5ed01ac250b8bc088e45839f95d96e6e8..ea9ca0e2f64afd8132388735cfdd15e5fd261d23 100644 (file)
@@ -113,9 +113,9 @@ static void check_csync_excluded(void **state)
     assert_int_equal(rc, CSYNC_NOT_EXCLUDED);
     rc = csync_excluded_no_ctx(csync->excludes, ".kde/share/config/kwin.eventsrc", CSYNC_FTW_TYPE_FILE);
     assert_int_equal(rc, CSYNC_NOT_EXCLUDED);
-    rc = csync_excluded_no_ctx(csync->excludes, ".htaccess/cache-maximegalon/cache1.txt", CSYNC_FTW_TYPE_FILE);
+    rc = csync_excluded_no_ctx(csync->excludes, ".directory/cache-maximegalon/cache1.txt", CSYNC_FTW_TYPE_FILE);
     assert_int_equal(rc, CSYNC_FILE_EXCLUDE_LIST);
-    rc = csync_excluded_no_ctx(csync->excludes, "mozilla/.htaccess", CSYNC_FTW_TYPE_DIR);
+    rc = csync_excluded_no_ctx(csync->excludes, "mozilla/.directory", CSYNC_FTW_TYPE_DIR);
     assert_int_equal(rc, CSYNC_FILE_EXCLUDE_LIST);
 
     /*