Changeset 103239 in vbox for trunk/src/VBox/GuestHost
- Timestamp:
- Feb 7, 2024 11:20:17 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/testcase/tstClipboardGH-X11.cpp
r102931 r103239 426 426 g_tst_cbCompleted = cb; 427 427 428 if (pData->enmType == SHCLX11EVENTTYPE_READ) 429 RTMemFree(pData->Read.pvData); 430 RTMemFree(pData); 431 428 432 return VINF_SUCCESS; 429 433 } … … 468 472 const char *pcszExp, int rcExp) 469 473 { 470 bool retval= true;474 bool fRc = true; 471 475 tstClipSendTargetUpdate(pCtx); 472 476 if (tstClipQueryFormats() != VBOX_SHCL_FMT_UNICODETEXT) … … 482 486 RTTestFailed(hTest, "Wrong return code, expected %Rrc, got %Rrc\n", rcExp, rc); 483 487 else if (RT_FAILURE(rcExp)) 484 retval= true;488 fRc = true; 485 489 else 486 490 { … … 500 504 { 501 505 if (memcmp(abBuf, wcExp, cbExp) == 0) 502 retval= true;506 fRc = true; 503 507 else 504 508 RTTestFailed(hTest, "Returned string \"%.*ls\" does not match expected string \"%s\"\n", … … 508 512 } 509 513 } 510 if (!retval) 511 RTTestFailureDetails(hTest, "Expected: string \"%s\", rc %Rrc\n", 512 pcszExp, rcExp); 514 if (!fRc) 515 RTTestFailureDetails(hTest, "Expected: string \"%s\", rc=%Rrc\n", pcszExp, rcExp); 513 516 } 514 517
Note:
See TracChangeset
for help on using the changeset viewer.