Changeset 89204 in vbox for trunk/src/VBox/ValidationKit/utils/audio
- Timestamp:
- May 20, 2021 4:33:56 PM (4 years ago)
- Location:
- trunk/src/VBox/ValidationKit/utils/audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/Makefile.kmk
r89177 r89204 67 67 $(VKAT_PATH_AUDIO)/DrvHostAudioValidationKit.cpp \ 68 68 $(VKAT_PATH_AUDIO)/AudioTestService.cpp \ 69 $(VKAT_PATH_AUDIO)/AudioTestServiceClient.cpp \ 69 70 $(VKAT_PATH_AUDIO)/AudioTestServiceProtocol.cpp \ 70 71 $(VKAT_PATH_AUDIO)/AudioTestServiceTcp.cpp -
trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp
r89177 r89204 66 66 #include "../../../Devices/Audio/AudioTest.h" 67 67 #include "../../../Devices/Audio/AudioTestService.h" 68 #include "../../../Devices/Audio/AudioTestServiceClient.h" 68 69 #include "VBoxDD.h" 69 70 … … 2483 2484 2484 2485 /** 2486 * Tests the Audio Test Service (ATS). 2487 * 2488 * @returns VBox status code. 2489 */ 2490 static int audioTestDoSelftestSvc(void) 2491 { 2492 int rc = AudioTestSvcInit(); 2493 if (RT_SUCCESS(rc)) 2494 { 2495 if (RT_SUCCESS(rc)) 2496 { 2497 rc = AudioTestSvcStart(); 2498 if (RT_SUCCESS(rc)) 2499 { 2500 ATSCLIENT Conn; 2501 rc = AudioTestSvcClientConnect(&Conn); 2502 if (RT_SUCCESS(rc)) 2503 { 2504 rc = AudioTestSvcClientClose(&Conn); 2505 } 2506 } 2507 } 2508 } 2509 2510 return rc; 2511 } 2512 2513 /** 2485 2514 * Main function for performing the self-tests. 2486 2515 * … … 2489 2518 static int audioTestDoSelftest(void) 2490 2519 { 2491 int rc = atsInit(); 2492 if (RT_SUCCESS(rc)) 2493 { 2494 if (RT_SUCCESS(rc)) 2495 rc = atsStart(); 2496 } 2520 int rc = audioTestDoSelftestSvc(); 2521 if (RT_FAILURE(rc)) 2522 RTTestFailed(g_hTest, "Self-test failed with: %Rrc", rc); 2497 2523 2498 2524 return rc; … … 2547 2573 } 2548 2574 2549 rc = audioTestDoSelftest(); 2550 2551 return RT_SUCCESS(rc) ? RTEXITCODE_SUCCESS : RTEXITCODE_FAILURE; 2575 audioTestDoSelftest(); 2576 /* 2577 * Print summary and exit. 2578 */ 2579 return RTTestSummaryAndDestroy(g_hTest); 2552 2580 } 2553 2581
Note:
See TracChangeset
for help on using the changeset viewer.