Changeset 67796 in vbox for trunk/src/VBox/Additions/x11
- Timestamp:
- Jul 5, 2017 1:37:55 PM (7 years ago)
- Location:
- trunk/src/VBox/Additions/x11/VBoxClient
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/seamless.cpp
r62883 r67796 253 253 } 254 254 255 /** @todo Expand this? */256 int SeamlessMain::selfTest()257 {258 int rc = VERR_INTERNAL_ERROR;259 const char *pcszStage;260 261 LogRelFlowFunc(("\n"));262 do {263 pcszStage = "Testing event loop cancellation";264 VbglR3InterruptEventWaits();265 if (RT_FAILURE(VbglR3WaitEvent(VMMDEV_EVENT_VALID_EVENT_MASK, 0, NULL)))266 break;267 if ( VbglR3WaitEvent(VMMDEV_EVENT_VALID_EVENT_MASK, 0, NULL)268 != VERR_TIMEOUT)269 break;270 rc = VINF_SUCCESS;271 } while(0);272 if (RT_FAILURE(rc))273 LogRel(("VBoxClient (seamless): self test failed. Stage: \"%s\"\n",274 pcszStage));275 return rc;276 }277 278 255 /** Service magic number, start of a UUID. */ 279 256 #define SEAMLESSSERVICE_MAGIC 0xd28ba727 … … 322 299 if (RT_FAILURE(rc)) 323 300 return rc; 324 rc = pSelf->mSeamless.selfTest();325 if (RT_FAILURE(rc))326 {327 pSelf->mSeamless.stop();328 return rc;329 }330 301 pSelf->mIsInitialised = true; 331 302 return VINF_SUCCESS; -
trunk/src/VBox/Additions/x11/VBoxClient/testcase/tstSeamlessX11.cpp
r62530 r67796 80 80 } 81 81 82 int VbglR3WaitEvent(uint32_t , uint32_t cMillies, uint32_t *)83 {84 return RTSemEventWait(eventSem, cMillies);85 }86 87 int VbglR3InterruptEventWaits(void)88 {89 return RTSemEventSignal(eventSem);90 }91 92 82 VBGLR3DECL(int) VbglR3InitUser(void) { return VINF_SUCCESS; } 93 83 VBGLR3DECL(void) VbglR3Term(void) {}
Note:
See TracChangeset
for help on using the changeset viewer.