Author: mjansen
Date: Wed Sep 21 19:26:47 2016
New Revision: 72762
URL:
http://svn.reactos.org/svn/reactos?rev=72762&view=rev
Log:
[CRT_APITEST] Add tests for __getmainargs, testing a commandline ending with spaces. Patch
by Yaroslav Veremenko CORE-9199
Modified:
trunk/rostests/apitests/crt/__getmainargs.c
Modified: trunk/rostests/apitests/crt/__getmainargs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/crt/__getmainarg…
==============================================================================
--- trunk/rostests/apitests/crt/__getmainargs.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/crt/__getmainargs.c [iso-8859-1] Wed Sep 21 19:26:47 2016
@@ -84,6 +84,7 @@
ok_argsA("test.exe a \" b\\ \"\" c", "a",
" b\\ \"", "c");
ok_argsA("test.exe a \"b\\ \"\"\" c\" d",
"a", "b\\ \" c", "d");
ok_argsA("test.exe a \"b\\ \"\"\" \"c
\"\"\"\" d", "a", "b\\ \" c",
"\" d");
+ ok_argsA("test.exe a b c ", "a", "b", "c");
ok_argsW(L"test.exe \"a b c\" d e", L"a b c",
L"d", L"e");
ok_argsW(L"test.exe \"ab\\\"c\" \"\\\\\" d",
L"ab\"c", L"\\", L"d");
@@ -97,4 +98,5 @@
ok_argsW(L"test.exe a \" b\\ \"\" c", L"a",
L" b\\ \"", L"c");
ok_argsW(L"test.exe a \"b\\ \"\"\" c\" d",
L"a", L"b\\ \" c", L"d");
ok_argsW(L"test.exe a \"b\\ \"\"\" \"c
\"\"\"\" d", L"a", L"b\\ \" c",
L"\" d");
+ ok_argsW(L"test.exe a b c ", L"a", L"b",
L"c");
}