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

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-04-25 02:40:50 +0400
committerRussell Belfer <rb@github.com>2014-04-25 02:40:50 +0400
commit6b833e3a4a29d76e25120cf374838404a6b68825 (patch)
tree8dfda5032413176327608fdfaec2d7164601407f /tests/status
parentf608f3bb274dbf413127ba352f48021ed538139e (diff)
Improve docs for status rename detection limits
and make tests empty on platforms without iconv support.
Diffstat (limited to 'tests/status')
-rw-r--r--tests/status/renames.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/status/renames.c b/tests/status/renames.c
index 39fb801e2..24b8aca2b 100644
--- a/tests/status/renames.c
+++ b/tests/status/renames.c
@@ -582,12 +582,13 @@ void test_status_renames__zero_byte_file_does_not_fail(void)
}
#ifdef GIT_USE_ICONV
-
static char *nfc = "\xC3\x85\x73\x74\x72\xC3\xB6\x6D";
static char *nfd = "\x41\xCC\x8A\x73\x74\x72\x6F\xCC\x88\x6D";
+#endif
void test_status_renames__precomposed_unicode_rename(void)
{
+#ifdef GIT_USE_ICONV
git_status_list *statuslist;
git_status_options opts = GIT_STATUS_OPTIONS_INIT;
struct status_entry expected0[] = {
@@ -634,10 +635,12 @@ void test_status_renames__precomposed_unicode_rename(void)
cl_git_pass(git_status_list_new(&statuslist, g_repo, &opts));
check_status(statuslist, expected3, ARRAY_SIZE(expected3));
git_status_list_free(statuslist);
+#endif
}
void test_status_renames__precomposed_unicode_toggle_is_rename(void)
{
+#ifdef GIT_USE_ICONV
git_status_list *statuslist;
git_status_options opts = GIT_STATUS_OPTIONS_INIT;
struct status_entry expected0[] = {
@@ -703,6 +706,6 @@ void test_status_renames__precomposed_unicode_toggle_is_rename(void)
cl_git_pass(git_status_list_new(&statuslist, g_repo, &opts));
check_status(statuslist, expected3, ARRAY_SIZE(expected3));
git_status_list_free(statuslist);
+#endif
}
-#endif