Changeset 90087 in vbox for trunk/src/VBox/ValidationKit/utils
- Timestamp:
- Jul 8, 2021 9:14:15 AM (4 years ago)
- Location:
- trunk/src/VBox/ValidationKit/utils/audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp
r90084 r90087 804 804 rc = AudioTestSvcHandleOption(&TstEnv.u.Guest.Srv, ch, &ValueUnion); 805 805 if (RT_FAILURE(rc)) 806 return RTGetOptPrintError( rc, &ValueUnion);806 return RTGetOptPrintError(ch, &ValueUnion); 807 807 } 808 808 } … … 1001 1001 unsigned iTestSet = 0; 1002 1002 1003 int rc;1003 int ch; 1004 1004 RTGETOPTUNION ValueUnion; 1005 while (( rc= RTGetOpt(pGetState, &ValueUnion)))1006 { 1007 switch ( rc)1005 while ((ch = RTGetOpt(pGetState, &ValueUnion))) 1006 { 1007 switch (ch) 1008 1008 { 1009 1009 case VKAT_VERIFY_OPT_TAG: … … 1021 1021 1022 1022 default: 1023 return RTGetOptPrintError( rc, &ValueUnion);1023 return RTGetOptPrintError(ch, &ValueUnion); 1024 1024 } 1025 1025 } … … 1027 1027 if (!iTestSet) 1028 1028 return RTMsgErrorExitFailure("At least one test set must be specified"); 1029 1030 int rc = VINF_SUCCESS; 1029 1031 1030 1032 /* … … 1223 1225 AssertRCReturn(rc, RTEXITCODE_INIT); 1224 1226 1227 int ch; 1225 1228 RTGETOPTUNION ValueUnion; 1226 while (( rc= RTGetOpt(&GetState, &ValueUnion)) != 0)1227 { 1228 switch ( rc)1229 while ((ch = RTGetOpt(&GetState, &ValueUnion)) != 0) 1230 { 1231 switch (ch) 1229 1232 { 1230 1233 AUDIO_TEST_COMMON_OPTION_CASES(ValueUnion); … … 1265 1268 if (RT_SUCCESS(rc)) 1266 1269 { 1267 1268 1270 rcExit = pCmd->pfnHandler(&GetState); 1269 1271 RTMemFree(paCombinedOptions); … … 1281 1283 1282 1284 default: 1283 return RTGetOptPrintError( rc, &ValueUnion);1285 return RTGetOptPrintError(ch, &ValueUnion); 1284 1286 } 1285 1287 } -
trunk/src/VBox/ValidationKit/utils/audio/vkatCmdGeneric.cpp
r89962 r90087 75 75 76 76 /* Argument processing loop: */ 77 int rc;77 int ch; 78 78 RTGETOPTUNION ValueUnion; 79 while (( rc= RTGetOpt(pGetState, &ValueUnion)) != 0)80 { 81 switch ( rc)79 while ((ch = RTGetOpt(pGetState, &ValueUnion)) != 0) 80 { 81 switch (ch) 82 82 { 83 83 case 'b': … … 90 90 91 91 default: 92 return RTGetOptPrintError( rc, &ValueUnion);92 return RTGetOptPrintError(ch, &ValueUnion); 93 93 } 94 94 } … … 99 99 RTEXITCODE rcExit = RTEXITCODE_FAILURE; 100 100 AUDIOTESTDRVSTACK DrvStack; 101 rc = audioTestDriverStackInit(&DrvStack, pDrvReg, false /*fWithDrvAudio*/);101 int rc = audioTestDriverStackInit(&DrvStack, pDrvReg, false /*fWithDrvAudio*/); 102 102 if (RT_SUCCESS(rc)) 103 103 { … … 421 421 422 422 /* Argument processing loop: */ 423 int rc;423 int ch; 424 424 RTGETOPTUNION ValueUnion; 425 while (( rc= RTGetOpt(pGetState, &ValueUnion)) != 0)426 { 427 switch ( rc)425 while ((ch = RTGetOpt(pGetState, &ValueUnion)) != 0) 426 { 427 switch (ch) 428 428 { 429 429 case 'b': … … 469 469 470 470 default: 471 return RTGetOptPrintError( rc, &ValueUnion);471 return RTGetOptPrintError(ch, &ValueUnion); 472 472 } 473 473 } … … 772 772 773 773 /* Argument processing loop: */ 774 int rc;774 int ch; 775 775 RTGETOPTUNION ValueUnion; 776 while (( rc= RTGetOpt(pGetState, &ValueUnion)) != 0)777 { 778 switch ( rc)776 while ((ch = RTGetOpt(pGetState, &ValueUnion)) != 0) 777 { 778 switch (ch) 779 779 { 780 780 case 'b': … … 850 850 851 851 default: 852 return RTGetOptPrintError( rc, &ValueUnion);852 return RTGetOptPrintError(ch, &ValueUnion); 853 853 } 854 854 }
Note:
See TracChangeset
for help on using the changeset viewer.