Changeset 16178 in vbox for trunk/src/VBox/Main/testcase
- Timestamp:
- Jan 22, 2009 3:39:48 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 41924
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/testcase/tstHostHardwareLinux.cpp
r15465 r16178 36 36 #include <errno.h> 37 37 #include <string.h> 38 #include <stdlib.h> 38 39 39 40 int main() … … 133 134 RTPrintf ("Waiting for hotplug events. Note that DBus often seems to deliver duplicate events in close succession.\n"); 134 135 RTPrintf ("Waiting for a hotplug event for five seconds...\n"); 135 waiter.Wait (5000); 136 if (RT_FAILURE(waiter.Wait (5000))) 137 { 138 RTPrintf("Failed!\n"); 139 exit(1); 140 } 136 141 RTPrintf ("Waiting for a hotplug event, Ctrl-C to abort...\n"); 137 waiter.Wait(RT_INDEFINITE_WAIT); 142 if (RT_FAILURE(waiter.Wait(RT_INDEFINITE_WAIT))) 143 { 144 RTPrintf("Failed!\n"); 145 exit(1); 146 } 138 147 #endif /* VBOX_USB_WITH_SYSFS */ 139 148 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.