Author: pschweitzer
Date: Sun Sep 27 20:41:14 2015
New Revision: 69388
URL:
http://svn.reactos.org/svn/reactos?rev=69388&view=rev
Log:
[NTDLL_APITEST]
Add more tests for RtlGenerate8dot3Name().
Not sure how many more are failing in ReactOS: they all pass in my WC (teasing :-))
CORE-10223
Modified:
trunk/rostests/apitests/ntdll/RtlGenerate8dot3Name.c
Modified: trunk/rostests/apitests/ntdll/RtlGenerate8dot3Name.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/ntdll/RtlGenerat…
==============================================================================
--- trunk/rostests/apitests/ntdll/RtlGenerate8dot3Name.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/ntdll/RtlGenerate8dot3Name.c [iso-8859-1] Sun Sep 27 20:41:14
2015
@@ -19,17 +19,17 @@
_Inout_ PGENERATE_NAME_CONTEXT Context,
_Inout_ PUNICODE_STRING Name8dot3);
-PWSTR Names[] = { L"Menu Démarrer", L"Sélecteur de configuration
clavier.lnk", L"éèà ùç.txt", L"éèà ùçeeauc.txt",
L"Long file name.txt", L"Long file name",
L"Longfilename.txt", L"Longfilename" };
-PWSTR ShortNames1[] = { L"MENUDM~1", L"SLECTE~1.LNK",
L"5C2D~1.TXT", L"EEAUC~1.TXT", L"LONGFI~1.TXT",
L"LONGFI~1", L"LONGFI~1.TXT", L"LONGFI~1" };
-PWSTR ShortNames2[] = { L"MENUDM~2", L"SLECTE~2.LNK",
L"5C2D~2.TXT", L"EEAUC~2.TXT", L"LONGFI~2.TXT",
L"LONGFI~2", L"LONGFI~2.TXT", L"LONGFI~2" };
-PWSTR ExShortNames1[] = { L"MENUDÃ~1", L"SÃLECT~1.LNK",
L"ÃÃÃÃÃ~1.TXT", L"ÃÃÃÃÃE~1.TXT", L"LONGFI~1.TXT",
L"LONGFI~1", L"LONGFI~1.TXT", L"LONGFI~1" };
-PWSTR ExShortNames2[] = { L"MENUDÃ~2", L"SÃLECT~2.LNK",
L"ÃÃÃÃÃ~2.TXT", L"ÃÃÃÃÃE~2.TXT", L"LONGFI~2.TXT",
L"LONGFI~2", L"LONGFI~2.TXT", L"LONGFI~2" };
+PWSTR Names[] = { L"Menu Démarrer", L"Sélecteur de configuration
clavier.lnk", L"éèà ùç.txt", L"çùà èé.txt",
L"éèà ù.txt", L"çùà è.txt", L"éèà ùçeeauc.txt",
L"éeèéçcùu.txt", L"test.éxè", L"t£$t¤.txt",
L"Long file name.txt", L"Long file name",
L"Longfilename.txt", L"Longfilename" };
+PWSTR ShortNames1[] = { L"MENUDM~1", L"SLECTE~1.LNK",
L"5C2D~1.TXT", L"423C~1.TXT", L"925E~1.TXT",
L"7E4C~1.TXT", L"EEAUC~1.TXT", L"ECU~1.TXT",
L"TEST~1.X", L"T$T~1.TXT", L"LONGFI~1.TXT",
L"LONGFI~1", L"LONGFI~1.TXT", L"LONGFI~1" };
+PWSTR ShortNames2[] = { L"MENUDM~2", L"SLECTE~2.LNK",
L"5C2D~2.TXT", L"423C~2.TXT", L"925E~2.TXT",
L"7E4C~2.TXT", L"EEAUC~2.TXT", L"ECU~2.TXT",
L"TEST~2.X", L"T$T~2.TXT", L"LONGFI~2.TXT",
L"LONGFI~2", L"LONGFI~2.TXT", L"LONGFI~2" };
+PWSTR ExShortNames1[] = { L"MENUDÃ~1", L"SÃLECT~1.LNK",
L"ÃÃÃÃÃ~1.TXT", L"ÃÃÃÃÃ~1.TXT", L"ÃÃÃÃ~1.TXT",
L"ÃÃÃÃ~1.TXT", L"ÃÃÃÃÃE~1.TXT",
L"ÃEÃÃÃC~1.TXT", L"TEST~1.ÃXÃ", L"T£$T¤~1.TXT",
L"LONGFI~1.TXT", L"LONGFI~1", L"LONGFI~1.TXT",
L"LONGFI~1" };
+PWSTR ExShortNames2[] = { L"MENUDÃ~2", L"SÃLECT~2.LNK",
L"ÃÃÃÃÃ~2.TXT", L"ÃÃÃÃÃ~2.TXT", L"ÃÃÃÃ~2.TXT",
L"ÃÃÃÃ~2.TXT", L"ÃÃÃÃÃE~2.TXT",
L"ÃEÃÃÃC~2.TXT", L"TEST~2.ÃXÃ", L"T£$T¤~2.TXT",
L"LONGFI~2.TXT", L"LONGFI~2", L"LONGFI~2.TXT",
L"LONGFI~2" };
START_TEST(RtlGenerate8dot3Name)
{
USHORT i;
- for (i = 0; i < 8; ++i)
+ for (i = 0; i < 14; ++i)
{
WCHAR Buffer[12];
GENERATE_NAME_CONTEXT Context;