VirtualBox

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


Ignore:
Timestamp:
Jul 9, 2009 12:24:28 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49831
Message:

Main: make HostHardwareLinux use MiniString instead of std::string; add exception handling to HostImpl bits

File:
1 edited

Legend:

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

    r16178 r21436  
    5959    {
    6060        RTPrintf ("  device: %s", it->mDevice.c_str());
    61         if (!it->mUdi.empty())
     61        if (!it->mUdi.isEmpty())
    6262            RTPrintf (", udi: %s", it->mUdi.c_str());
    63         if (!it->mDescription.empty())
     63        if (!it->mDescription.isEmpty())
    6464            RTPrintf (", description: %s", it->mDescription.c_str());
    6565        RTPrintf ("\n");
     
    7070    {
    7171        RTPrintf ("  device: %s", it->mDevice.c_str());
    72         if (!it->mUdi.empty())
     72        if (!it->mUdi.isEmpty())
    7373            RTPrintf (", udi: %s", it->mUdi.c_str());
    74         if (!it->mDescription.empty())
     74        if (!it->mDescription.isEmpty())
    7575            RTPrintf (", description: %s", it->mDescription.c_str());
    7676        RTPrintf ("\n");
     
    118118                return 1;
    119119            }
    120             if (RTLinuxSysFsExists("%s/driver", it2->c_str()) != (size != -1))           
     120            if (RTLinuxSysFsExists("%s/driver", it2->c_str()) != (size != -1))
    121121            {
    122122                RTPrintf ("RTLinuxSysFsExists did not return the expected value for the driver link of interface %s of device %s.\n",
     
    144144        RTPrintf("Failed!\n");
    145145        exit(1);
    146     }   
     146    }
    147147#endif  /* VBOX_USB_WITH_SYSFS */
    148148    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