Changeset 98574 in vbox for trunk/src/VBox/HostServices/GuestControl
- Timestamp:
- Feb 15, 2023 12:24:25 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/GuestControl/testcase/tstGuestControlMockHGCM.cpp
r98526 r98574 26 26 */ 27 27 28 29 /********************************************************************************************************************************* 30 * Header Files * 31 *********************************************************************************************************************************/ 28 32 #include <VBox/HostServices/GuestControlSvc.h> 29 33 #include <VBox/VBoxGuestLib.h> … … 51 55 * Shared Clipboard testing * 52 56 *********************************************************************************************************************************/ 57 /** @todo r=bird: Clipboard? */ 58 53 59 struct CLIPBOARDTESTDESC; 54 60 /** Pointer to a test description. */ … … 103 109 CLIPBOARDTESTCTX g_TstCtx; 104 110 111 #if 0 /** @todo r=bird: Clipboard? This times out and asserts and doesn't seems to do anything sensible. */ 112 105 113 /** 106 114 * Structure for keeping a clipboard test description. … … 120 128 } SHCLCONTEXT; 121 129 130 #endif 131 122 132 123 133 static void testGuestSimple(void) … … 155 165 * Test: Guest reading from host * 156 166 ********************************************************************************************************************************/ 167 /** @todo r=bird: Reading from the host? WTF? Doesn't seem to work, so I've disabled it till it can be rewritten and 168 * made to do something useful rather than asserting. */ 169 #if 0 157 170 typedef struct TSTUSERMOCK 158 171 { … … 193 206 { 194 207 RT_NOREF(pTstCtx, ppvCtx); 195 196 int rc = VINF_SUCCESS; 197 198 return rc; 208 return VINF_SUCCESS; 199 209 } 200 210 … … 233 243 } 234 244 245 #endif 246 235 247 236 248 /********************************************************************************************************************************* 237 249 * Main * 238 250 ********************************************************************************************************************************/ 251 #if 0 /** @todo r=bird: Same as above. */ 239 252 240 253 /** Test definition table. */ … … 265 278 } 266 279 267 int main(int argc, char *argv[]) 280 #endif 281 282 int main() 268 283 { 269 284 /* 270 285 * Init the runtime, test and say hello. 271 286 */ 272 const char *pcszExecName; 273 NOREF(argc); 274 pcszExecName = strrchr(argv[0], '/'); 275 pcszExecName = pcszExecName ? pcszExecName + 1 : argv[0]; 276 RTEXITCODE rcExit = RTTestInitAndCreate(pcszExecName, &g_hTest); 287 RTEXITCODE rcExit = RTTestInitAndCreate("tstGuestControlMockHGCM", &g_hTest); 277 288 if (rcExit != RTEXITCODE_SUCCESS) 278 289 return rcExit; 279 290 RTTestBanner(g_hTest); 280 291 281 #if ndef DEBUG_andy292 #if 0 //ndef DEBUG_andy - bird: fix the 'ing code. 282 293 /* Don't let assertions in the host service panic (core dump) the test cases. */ 283 294 RTAssertSetMayPanic(false); … … 285 296 286 297 PTSTHGCMMOCKSVC const pSvc = TstHgcmMockSvcInst(); 287 288 TstHgcmMockSvcCreate(pSvc, 42 /** @todo */); 298 TstHgcmMockSvcCreate(pSvc); 289 299 TstHgcmMockSvcStart(pSvc); 290 300 … … 298 308 } 299 309 310 #if 0 /** @todo r=bird: Clipboard? This times out and asserts and doesn't seems to do anything sensible. */ 300 311 RT_ZERO(g_TstCtx); 301 312 … … 311 322 312 323 TstHGCMUtilsTaskDestroy(pTask); 324 #endif 313 325 314 326 TstHgcmMockSvcStop(pSvc);
Note:
See TracChangeset
for help on using the changeset viewer.