Changeset 60522 in vbox for trunk/src/VBox/ValidationKit/utils/usb/UsbTestServiceGadgetClassTest.cpp
- Timestamp:
- Apr 15, 2016 2:34:35 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 106643
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/usb/UsbTestServiceGadgetClassTest.cpp
r60517 r60522 32 32 #include <iprt/string.h> 33 33 #include <iprt/symlink.h> 34 #include <iprt/thread.h> 34 35 #include <iprt/types.h> 35 36 … … 359 360 if (RT_SUCCESS(rc)) 360 361 rc = RTLinuxSysFsWriteStrFile(pClass->pszUdc, 0, NULL, "%s/UDC", pClass->pszGadgetPath); 362 if (RT_SUCCESS(rc)) 363 RTThreadSleep(500); /* Fudge: Sleep a bit to give the device a chance to appear on the host so binding succeeds. */ 361 364 } 362 365 } … … 406 409 static DECLCALLBACK(int) utsGadgetClassTestConnect(PUTSGADGETCLASSINT pClass) 407 410 { 408 return RTLinuxSysFsWriteStrFile("connect", 0, NULL, "/sys/class/udc/%s/soft_connect", pClass->pszUdc); 411 int rc = RTLinuxSysFsWriteStrFile("connect", 0, NULL, "/sys/class/udc/%s/soft_connect", pClass->pszUdc); 412 if (RT_SUCCESS(rc)) 413 RTThreadSleep(500); /* Fudge: Sleep a bit to give the device a chance to appear on the host so binding succeeds. */ 414 415 return rc; 409 416 } 410 417
Note:
See TracChangeset
for help on using the changeset viewer.