VirtualBox

Changeset 82887 in vbox for trunk


Ignore:
Timestamp:
Jan 28, 2020 2:23:30 AM (5 years ago)
Author:
vboxsync
Message:

tstClipboardServiceHost.cpp: Added explanations why some tests have been failing for months now. bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/testcase/tstClipboardServiceHost.cpp

    r82881 r82887  
    183183
    184184    RTTestISub("Testing two formats, waiting guest call.");
    185     shClSvcClientReset(&g_Client);
     185    shClSvcClientReset(&g_Client); /** @todo r=bird: These reset calls are a little bogus... Especially since they don't do what you need them to anyway. */
     186    /** @todo r=bird: There is already a pending wait call here from 5 lines above.
     187     *        The code in 6.0 and earlier would overwrite the previous call, leaking
     188     *        HGCM resources.  6.1+ code rejects the 2nd call, completing it
     189     *        with VERR_RESOURCE_BUSY.  If any client depends on this (doubtful),
     190     *        we'll assert in debug builds. Need to fix the test and temporarily
     191     *        disble assertions around it. */
    186192    HGCMSvcSetU32(&parms[0], 0);
    187193    HGCMSvcSetU32(&parms[1], 0);
     
    190196    RTTESTI_CHECK_RC(call.rc, VERR_TRY_AGAIN);  /* This should get updated only when the guest call completes. */
    191197    testMsgAddReadData(&g_Client, VBOX_SHCL_FMT_UNICODETEXT | VBOX_SHCL_FMT_HTML);
     198    /** @todo r=bird: The 6.1+ is buggy in that it returns both
     199     *        VBOX_SHCL_FMT_UNICODETEXT and VBOX_SHCL_FMT_HTML here, rather than
     200     *        separating them.  This is relevant on OS X hosts where the host code
     201     *        would request both formats in one go, but since the clients will only
     202     *        handle one of them at the time, they need to be split up like the
     203     *        testcase checks for here.  (This is, btw, why it's nice to have
     204     *        interface testcases like this.  Good work Michael.) */
    192205    RTTESTI_CHECK(parms[0].u.uint32 == VBOX_SHCL_HOST_MSG_READ_DATA);
    193206    RTTESTI_CHECK(parms[1].u.uint32 == VBOX_SHCL_FMT_UNICODETEXT);
     
    210223    table.pfnCall(NULL, &call, 1 /* clientId */, &g_Client, VBOX_SHCL_GUEST_FN_MSG_OLD_GET_WAIT, 2, parms, 0);
    211224    RTTESTI_CHECK(parms[0].u.uint32 == VBOX_SHCL_HOST_MSG_READ_DATA);
     225    /** @todo r=bird: Same problems with two formats as described above. */
    212226    RTTESTI_CHECK(parms[1].u.uint32 == VBOX_SHCL_FMT_UNICODETEXT);
    213227    RTTESTI_CHECK_RC_OK(call.rc);
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