mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 06:55:59 +03:00
Fix the exclude list test.
This commit is contained in:
parent
335b97242c
commit
23b40250ef
1 changed files with 3 additions and 3 deletions
|
@ -35,14 +35,14 @@ END_TEST
|
|||
START_TEST (check_csync_exclude_load)
|
||||
{
|
||||
fail_unless(csync_exclude_load(csync, SYSCONFDIR "/config/" CSYNC_EXCLUDE_FILE) == 0, NULL);
|
||||
fail_unless(strcmp(csync->excludes->vector[0], (const char *) "/home/*/.kde?/cache-*") == 0, NULL);
|
||||
fail_unless(strcmp(csync->excludes->vector[0], (const char *) ".kde*/cache-*") == 0, NULL);
|
||||
}
|
||||
END_TEST
|
||||
|
||||
START_TEST (check_csync_excluded)
|
||||
{
|
||||
fail_unless(csync_excluded(csync, "/home/user/.kde4/cache-maximegalon/") == 1, NULL);
|
||||
fail_unless(csync_excluded(csync, "/home/user/.mozilla/plugins/foo.so") == 1, NULL);
|
||||
fail_unless(csync_excluded(csync, ".kde4/cache-maximegalon/") == 1, NULL);
|
||||
fail_unless(csync_excluded(csync, ".mozilla/plugins/foo.so") == 1, NULL);
|
||||
}
|
||||
END_TEST
|
||||
|
||||
|
|
Loading…
Reference in a new issue