Fix the exclude list test.

This commit is contained in:
Andreas Schneider 2008-04-24 09:39:20 +02:00
parent 335b97242c
commit 23b40250ef

View file

@ -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