tstHostHardwareLinux.cpp revision f74e35c55b43bdbc2d2ac21d61ac77ab764deadc
/* $Id$ */
/** @file
*
* Test executable for quickly excercising/debugging the hal-based Linux USB
* bits.
*/
/*
* Copyright (C) 2008 Sun Microsystems, Inc.
*
* Sun Microsystems, Inc. confidential
* All rights reserved
*/
#ifdef VBOX_USB_WITH_SYSFS
# include "tstUSBLinux.h"
#endif
#include <HostHardwareLinux.h>
#include <iprt/initterm.h>
int main()
{
RTR3Init();
#ifdef VBOX_USB_WITH_SYSFS
{
RTPrintf("Failed to initialise USBProxyServiceLinux, error %Rrc\n",
service.getLastError());
return 1;
}
RTPrintf("Failed to get any devices from sysfs\n.");
else
{
{
RTPrintf(" Device state: %s\n",
: "unknown"
);
RTPrintf(" Device speed: %s\n",
: "unknown"
);
RTPrintf("\n");
}
}
#endif /* VBOX_USB_WITH_SYSFS */
g_testHostHardwareLinux = true;
if (RT_SUCCESS (rc))
if (RT_FAILURE (rc))
{
RTPrintf("Failed to update the host drive information, error %Rrc\n",
rc);
return 1;
}
RTPrintf ("Listing floppy drives detected:\n");
{
RTPrintf ("\n");
}
RTPrintf ("Listing DVD drives detected:\n");
{
RTPrintf ("\n");
}
return 0;
}