Changeset 71009 in vbox for trunk/src/VBox/Runtime/testcase
- Timestamp:
- Feb 14, 2018 1:29:47 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120857
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstRTGetOpt.cpp
r69111 r71009 638 638 CHECK(argc4 == GetState.iNext); 639 639 640 /* 641 * Some negative testing. 642 */ 643 const char *argv5[] = 644 { 645 "non-option-argument", 646 "--optwithstring", /* missing string */ 647 /* done */ 648 NULL 649 }; 650 int argc5 = (int)RT_ELEMENTS(argv5) - 1; 651 CHECK(RT_SUCCESS(RTGetOptInit(&GetState, argc5, (char **)argv5, &s_aOpts2[0], RT_ELEMENTS(s_aOpts2), 0, 652 RTGETOPTINIT_FLAGS_OPTS_FIRST))); 653 RTTESTI_CHECK_RC(RTGetOpt(&GetState, &Val), VERR_GETOPT_REQUIRED_ARGUMENT_MISSING); 640 654 641 655
Note:
See TracChangeset
for help on using the changeset viewer.