@@ -10,16 +10,6 begin | |||||
10 | FELIX_HEX = "Felix Sch\xC3\xA4fer" |
|
10 | FELIX_HEX = "Felix Sch\xC3\xA4fer" | |
11 | CHAR_1_HEX = "\xc3\x9c" |
|
11 | CHAR_1_HEX = "\xc3\x9c" | |
12 |
|
12 | |||
13 | ## Ruby uses ANSI api to fork a process on Windows. |
|
|||
14 | ## Japanese Shift_JIS and Traditional Chinese Big5 have 0x5c(backslash) problem |
|
|||
15 | ## and these are incompatible with ASCII. |
|
|||
16 | ## Git for Windows (msysGit) changed internal API from ANSI to Unicode in 1.7.10 |
|
|||
17 | ## http://code.google.com/p/msysgit/issues/detail?id=80 |
|
|||
18 | ## So, Latin-1 path tests fail on Japanese Windows |
|
|||
19 | WINDOWS_PASS = (Redmine::Platform.mswin? && |
|
|||
20 | Redmine::Scm::Adapters::GitAdapter.client_version_above?([1, 7, 10])) |
|
|||
21 | WINDOWS_SKIP_STR = "TODO: This test fails in Git for Windows above 1.7.10" |
|
|||
22 |
|
||||
23 | ## Git, Mercurial and CVS path encodings are binary. |
|
13 | ## Git, Mercurial and CVS path encodings are binary. | |
24 | ## Subversion supports URL encoding for path. |
|
14 | ## Subversion supports URL encoding for path. | |
25 | ## Redmine Mercurial adapter and extension use URL encoding. |
|
15 | ## Redmine Mercurial adapter and extension use URL encoding. | |
@@ -29,6 +19,16 begin | |||||
29 | JRUBY_SKIP_STR = "TODO: This test fails in JRuby" |
|
19 | JRUBY_SKIP_STR = "TODO: This test fails in JRuby" | |
30 |
|
20 | |||
31 | if File.directory?(REPOSITORY_PATH) |
|
21 | if File.directory?(REPOSITORY_PATH) | |
|
22 | ## Ruby uses ANSI api to fork a process on Windows. | |||
|
23 | ## Japanese Shift_JIS and Traditional Chinese Big5 have 0x5c(backslash) problem | |||
|
24 | ## and these are incompatible with ASCII. | |||
|
25 | ## Git for Windows (msysGit) changed internal API from ANSI to Unicode in 1.7.10 | |||
|
26 | ## http://code.google.com/p/msysgit/issues/detail?id=80 | |||
|
27 | ## So, Latin-1 path tests fail on Japanese Windows | |||
|
28 | WINDOWS_PASS = (Redmine::Platform.mswin? && | |||
|
29 | Redmine::Scm::Adapters::GitAdapter.client_version_above?([1, 7, 10])) | |||
|
30 | WINDOWS_SKIP_STR = "TODO: This test fails in Git for Windows above 1.7.10" | |||
|
31 | ||||
32 | def setup |
|
32 | def setup | |
33 | adapter_class = Redmine::Scm::Adapters::GitAdapter |
|
33 | adapter_class = Redmine::Scm::Adapters::GitAdapter | |
34 | assert adapter_class |
|
34 | assert adapter_class |
General Comments 0
You need to be logged in to leave comments.
Login now