Commit 4e044ff0 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ntdll/tests: Add more tests for DOS to NT path conversion.

parent ef7283a0
......@@ -426,6 +426,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
{L"c:foo/bar", L"\\??\\C:\\windows\\foo\\bar", 19},
{L"c:./foo", L"\\??\\C:\\windows\\foo", 15},
{L"c:/./foo", L"\\??\\c:\\foo", 7},
{L"c:/..", L"\\??\\c:\\", -1},
{L"c:/foo/.", L"\\??\\c:\\foo", 7},
{L"c:/foo/./bar", L"\\??\\c:\\foo\\bar", 11},
{L"c:/foo/../bar", L"\\??\\c:\\bar", 7},
......@@ -440,6 +441,7 @@ static void test_RtlDosPathNameToNtPathName_U(void)
{L"AUX" , L"\\??\\AUX", -1},
{L"COM1" , L"\\??\\COM1", -1},
{L"?<>*\"|:", L"\\??\\C:\\windows\\?<>*\"|:", 15},
{L"?:", L"\\??\\?:\\", -1},
{L"\\\\foo", L"\\??\\UNC\\foo", -1},
{L"//foo", L"\\??\\UNC\\foo", -1},
......@@ -465,6 +467,15 @@ static void test_RtlDosPathNameToNtPathName_U(void)
{L"//?/foo/.", L"\\??\\foo", 4},
{L"//?/foo/..", L"\\??\\", -1},
{L"\\\\.", L"\\??\\", -1},
{L"\\\\.\\", L"\\??\\", -1},
{L"\\\\.\\/", L"\\??\\", -1},
{L"\\\\.\\foo", L"\\??\\foo", 4},
{L"\\\\.\\foo/", L"\\??\\foo\\", -1},
{L"\\\\.\\foo/bar", L"\\??\\foo\\bar", 8},
{L"\\\\.\\foo/.", L"\\??\\foo", 4},
{L"\\\\.\\foo/..", L"\\??\\", -1},
{L"\\\\?", L"\\??\\", -1},
{L"\\\\?\\", L"\\??\\", -1},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment