- Timestamp:
- Jan 28, 2020 2:23:30 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/testcase/tstClipboardServiceHost.cpp
r82881 r82887 183 183 184 184 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. */ 186 192 HGCMSvcSetU32(&parms[0], 0); 187 193 HGCMSvcSetU32(&parms[1], 0); … … 190 196 RTTESTI_CHECK_RC(call.rc, VERR_TRY_AGAIN); /* This should get updated only when the guest call completes. */ 191 197 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.) */ 192 205 RTTESTI_CHECK(parms[0].u.uint32 == VBOX_SHCL_HOST_MSG_READ_DATA); 193 206 RTTESTI_CHECK(parms[1].u.uint32 == VBOX_SHCL_FMT_UNICODETEXT); … … 210 223 table.pfnCall(NULL, &call, 1 /* clientId */, &g_Client, VBOX_SHCL_GUEST_FN_MSG_OLD_GET_WAIT, 2, parms, 0); 211 224 RTTESTI_CHECK(parms[0].u.uint32 == VBOX_SHCL_HOST_MSG_READ_DATA); 225 /** @todo r=bird: Same problems with two formats as described above. */ 212 226 RTTESTI_CHECK(parms[1].u.uint32 == VBOX_SHCL_FMT_UNICODETEXT); 213 227 RTTESTI_CHECK_RC_OK(call.rc);
Note:
See TracChangeset
for help on using the changeset viewer.