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:
authorEdward Thomson <ethomson@microsoft.com>2015-02-04 04:01:24 +0300
committerEdward Thomson <ethomson@microsoft.com>2015-02-04 04:01:24 +0300
commit07c989e98d013132168326eb7fd6fdf91a2399b9 (patch)
tree84505d41da2d3fa48e1db9b20b9e33a7c7af6e0c /tests/path
parent5f28ec84a10b283f79f027f83ba03d7774a987f7 (diff)
win32: further cleanups for 8.3 disabling
Diffstat (limited to 'tests/path')
-rw-r--r--tests/path/win32.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/path/win32.c b/tests/path/win32.c
index 41831a88c..4ff039738 100644
--- a/tests/path/win32.c
+++ b/tests/path/win32.c
@@ -194,13 +194,11 @@ void test_path_win32__8dot3_name(void)
#ifdef GIT_WIN32
char *shortname;
- /* Some guaranteed short names */
- shortname = git_win32_path_8dot3_name("C:\\Program Files");
-
- if (shortname == NULL)
+ if (!cl_sandbox_supports_8dot3())
clar__skip();
- cl_assert_equal_s("PROGRA~1", shortname);
+ /* Some guaranteed short names */
+ cl_assert_equal_s("PROGRA~1", (shortname = git_win32_path_8dot3_name("C:\\Program Files")));
git__free(shortname);
cl_assert_equal_s("WINDOWS", (shortname = git_win32_path_8dot3_name("C:\\WINDOWS")));