VirtualBox

Ignore:
Timestamp:
Aug 4, 2021 1:19:37 PM (3 years ago)
Author:
vboxsync
Message:

Audio/ValKit: Fixed tstAudioTestService (some options were missing). ​bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/testcase/tstAudioTestService.cpp

    r89962 r90518  
    8080    if (RT_SUCCESS(rc))
    8181    {
     82        RTGETOPTUNION Val;
     83        RT_ZERO(Val);
     84
     85        Val.psz = "server";
     86        rc = AudioTestSvcHandleOption(&Srv, ATSTCPOPT_MODE, &Val);
     87        RTTEST_CHECK_RC_OK(hTest, rc);
     88
     89        Val.u16 = ATS_TCP_DEF_BIND_PORT_HOST;
     90        rc = AudioTestSvcHandleOption(&Srv, ATSTCPOPT_BIND_PORT, &Val);
     91        RTTEST_CHECK_RC_OK(hTest, rc);
     92
    8293        rc = AudioTestSvcInit(&Srv, &Callbacks);
    8394        RTTEST_CHECK_RC_OK(hTest, rc);
     
    8899            if (RT_SUCCESS(rc))
    89100            {
    90                 RTGETOPTUNION Val;
    91                 RT_ZERO(Val);
     101                rc = AudioTestSvcClientCreate(&Client);
     102                RTTEST_CHECK_RC_OK(hTest, rc);
     103
     104                Val.psz = "client";
     105                rc = AudioTestSvcClientHandleOption(&Client, ATSTCPOPT_MODE, &Val);
     106                RTTEST_CHECK_RC_OK(hTest, rc);
    92107
    93108                Val.psz = ATS_TCP_DEF_CONNECT_HOST_ADDR_STR;
    94109                rc = AudioTestSvcClientHandleOption(&Client, ATSTCPOPT_CONNECT_ADDRESS, &Val);
    95                 AssertRC(rc);
     110                RTTEST_CHECK_RC_OK(hTest, rc);
    96111
    97                 Val.u16 = ATS_TCP_DEF_CONNECT_PORT_HOST_PORT_FWD;
     112                Val.u16 = ATS_TCP_DEF_CONNECT_PORT_GUEST;
    98113                rc = AudioTestSvcClientHandleOption(&Client, ATSTCPOPT_CONNECT_PORT, &Val);
    99                 AssertRC(rc);
     114                RTTEST_CHECK_RC_OK(hTest, rc);
    100115
    101116                rc = AudioTestSvcClientConnect(&Client);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette