Changeset 56002 in vbox for trunk/src/VBox/Runtime/testcase
- Timestamp:
- May 21, 2015 12:19:28 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstRTGetOptArgv.cpp
r55671 r56002 61 61 { 62 62 "0 1 \"\"2'' '3' 4 5 '''''6' 7 8 9 10 11", 63 "0 1 \"\"2 3 4 5 \"6\" 7 8 \"\" \"\"\"\"9\"\"\"\" 10 11",63 "0 1 \"\"2 3 4 5 \"6\" 7 8 \"\"9\"\" 10 11", 64 64 NULL, 65 65 12, … … 83 83 }, 84 84 { 85 "\t\" asdf \" '\"'xyz \"\t\" '\n' '\"' \"'\"\n\r ", 86 "\t\" asdf \" \\\"xyz \"\t\" \"\n\" \"\\\"\" '\n\r ", 85 "\t\" asdf \" '\"'xyz \"\t\" '\n' '\"' \"'\"\n\r \\\"xyz", 86 /* Note! Two things here to make CommandLineArgW happy. First, it doesn't use IFS including newline/return, so 87 we skip that bit of the test. Second, it uses pre-2008 doubledouble quoting rules, unlike the CRT and IPRT 88 which uses the post-2008 rules. We work around that by putting that test last. 89 See http://www.daviddeley.com/autohotkey/parameters/parameters.htm */ 90 "\t\" asdf \" \\\"xyz \"\t\" \"\n\" \"\\\"\" ' \"\"\"xyz\"", 87 91 NULL, 88 6,92 7, 89 93 { 90 94 " asdf ", … … 94 98 "\"", 95 99 "\'", 96 NULL, NULL, 100 "\"xyz", 101 NULL, 97 102 NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 98 103 }, 99 "' asdf ' '\"xyz' '\t' '\n' '\"' ''\"'\"'' ",100 "\" asdf \" \"\\\"xyz\" \"\t\" \"\n\" \"\\\"\" ' "104 "' asdf ' '\"xyz' '\t' '\n' '\"' ''\"'\"'' '\"xyz'", 105 "\" asdf \" \"\\\"xyz\" \"\t\" \"\n\" \"\\\"\" ' \"\\\"xyz\"" 101 106 }, 102 107 { … … 286 291 g_aTests[i].pszInMsCrt, g_aTests[i].pszSeparators); 287 292 RTTESTI_CHECK_RETV(papszArgs1[cArgs1] == NULL); 288 tstCheckNativeMsCrtToArgv(g_aTests[i].pszInMsCrt, g_aTests[i].cArgs, g_aTests[i].apszArgs); 293 if (g_aTests[i].pszSeparators == NULL) 294 tstCheckNativeMsCrtToArgv(g_aTests[i].pszInMsCrt, g_aTests[i].cArgs, g_aTests[i].apszArgs); 289 295 290 296 /* Second */ … … 311 317 i, iArg, papszArgs3[iArg], g_aTests[i].apszArgs[iArg], pszArgs2); 312 318 RTTESTI_CHECK_RETV(papszArgs3[cArgs3] == NULL); 313 tstCheckNativeMsCrtToArgv(pszArgs2, g_aTests[i].cArgs, g_aTests[i].apszArgs); 319 if (g_aTests[i].pszSeparators == NULL) 320 tstCheckNativeMsCrtToArgv(pszArgs2, g_aTests[i].cArgs, g_aTests[i].apszArgs); 314 321 315 322 /*
Note:
See TracChangeset
for help on using the changeset viewer.