diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-08-02 22:30:38 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-02 22:30:38 (GMT) |
commit | 5e98080188f2ef8034947b5c341371e1dfb6c2aa (patch) | |
tree | 52d62698e90758d9bd3816e3f2eca0ac252b3300 | |
parent | 218608cacd478bfdf4bfe40ed7d0b11af94a6a60 (diff) | |
parent | 5a06a20e0c8820fb0ca8da019c7a9fe6eb30ec2f (diff) | |
download | git-5e98080188f2ef8034947b5c341371e1dfb6c2aa.zip git-5e98080188f2ef8034947b5c341371e1dfb6c2aa.tar.gz git-5e98080188f2ef8034947b5c341371e1dfb6c2aa.tar.bz2 |
Merge branch 'bp/test-drop-caches-for-windows'
A test helper update for Windows.
* bp/test-drop-caches-for-windows:
handle lower case drive letters on Windows
-rw-r--r-- | t/helper/test-drop-caches.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/helper/test-drop-caches.c b/t/helper/test-drop-caches.c index d6bcfdd..f65e301 100644 --- a/t/helper/test-drop-caches.c +++ b/t/helper/test-drop-caches.c @@ -16,8 +16,8 @@ static int cmd_sync(void) if ((0 == dwRet) || (dwRet > MAX_PATH)) return error("Error getting current directory"); - if ((Buffer[0] < 'A') || (Buffer[0] > 'Z')) - return error("Invalid drive letter '%c'", Buffer[0]); + if (!has_dos_drive_prefix(Buffer)) + return error("'%s': invalid drive letter", Buffer); szVolumeAccessPath[4] = Buffer[0]; hVolWrite = CreateFile(szVolumeAccessPath, GENERIC_READ | GENERIC_WRITE, |