diff options
| author | Linquize <linquize@yahoo.com.hk> | 2014-12-19 23:54:01 +0800 |
|---|---|---|
| committer | Linquize <linquize@yahoo.com.hk> | 2014-12-19 23:54:01 +0800 |
| commit | 6fd00266a8c5c39d98abf2ec899db6f5cbd8874f (patch) | |
| tree | 8998be06fef137dcabba6601d38ed5180dde5295 /tests/path | |
| parent | 629417bd10d3308f1ee6fedd5bbb206a259337aa (diff) | |
| download | libgit2-6fd00266a8c5c39d98abf2ec899db6f5cbd8874f.tar.gz | |
COM0 is a valid path, although Windows Explorer does not allow to create this
Diffstat (limited to 'tests/path')
| -rw-r--r-- | tests/path/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/path/core.c b/tests/path/core.c index 85fee820a..6c7466e04 100644 --- a/tests/path/core.c +++ b/tests/path/core.c @@ -233,6 +233,8 @@ void test_path_core__isvalid_dos_paths_withnum(void) cl_assert_equal_b(false, git_path_isvalid(NULL, "com1.asdf\\zippy", GIT_PATH_REJECT_DOS_PATHS)); cl_assert_equal_b(false, git_path_isvalid(NULL, "com1:asdf\\foobar", GIT_PATH_REJECT_DOS_PATHS)); + cl_assert_equal_b(true, git_path_isvalid(NULL, "com0", 0)); + cl_assert_equal_b(true, git_path_isvalid(NULL, "com0", GIT_PATH_REJECT_DOS_PATHS)); cl_assert_equal_b(true, git_path_isvalid(NULL, "com10", 0)); cl_assert_equal_b(true, git_path_isvalid(NULL, "com10", GIT_PATH_REJECT_DOS_PATHS)); cl_assert_equal_b(true, git_path_isvalid(NULL, "comn", GIT_PATH_REJECT_DOS_PATHS)); |
