VirtualBox

Changeset 16178 in vbox for trunk/src/VBox/Main/testcase


Ignore:
Timestamp:
Jan 22, 2009 3:39:48 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
41924
Message:

Main/Linux: fixes and clean ups in the DBus code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/testcase/tstHostHardwareLinux.cpp

    r15465 r16178  
    3636#include <errno.h>
    3737#include <string.h>
     38#include <stdlib.h>
    3839
    3940int main()
     
    133134    RTPrintf ("Waiting for hotplug events.  Note that DBus often seems to deliver duplicate events in close succession.\n");
    134135    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    }
    136141    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    }   
    138147#endif  /* VBOX_USB_WITH_SYSFS */
    139148    return 0;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette