VirtualBox

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


Ignore:
Timestamp:
May 6, 2011 11:09:23 PM (14 years ago)
Author:
vboxsync
Message:

Main/linux/usb: additional tests, drop a couple of silly ones

File:
1 edited

Legend:

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

    r36995 r36996  
    9191    /* "sysfs" and root in the environment, method-specific init failed */
    9292    { "sysfs", "/dev/bus/usb", NULL, false, NULL, false, VERR_NO_MEMORY, "/dev/bus/usb", false, VERR_NO_MEMORY },
    93     /* "sysfs" and bad root in the environment (should succeed as we don't
    94      * do checks if the user specifies everything) */
     93    /* "sysfs" and bad root in the environment (should succeed as we don't do checks if the user specifies everything) */
    9594    { "sysfs", "/dev/bus/usb", "/dev/usbvbox", false, "/proc/usb/bus", false, VINF_SUCCESS, "/dev/bus/usb", false, VINF_SUCCESS },
    9695    /* "sysfs" and bad root in the environment, method-specific init failed */
     
    102101    /* "usbfs" and root in the environment, method-specific init failed */
    103102    { "usbfs", "/dev/bus/usb", NULL, false, NULL, false, VERR_NO_MEMORY, "/dev/bus/usb", true, VERR_NO_MEMORY },
    104     /* "usbfs" and bad root in the environment (should succeed as we don't
    105      * do checks if the user specifies everything) */
     103    /* "usbfs" and bad root in the environment (should succeed as we don't do checks if the user specifies everything) */
    106104    { "usbfs", "/dev/bus/usb", "/dev/usbvbox", false, "/proc/usb/bus", false, VINF_SUCCESS, "/dev/bus/usb", true, VINF_SUCCESS },
    107105    /* "usbfs" and bad root in the environment, method-specific init failed */
     
    109107    /* "usbfs" and no root in the environment */
    110108    { "usbfs", NULL, NULL, false, "/proc/bus/usb", true, VINF_SUCCESS, "/proc/bus/usb", true, VINF_SUCCESS },
    111     /* No environment, sysfs and usbfs available but without access
    112      * permissions. */
     109    /* invalid method in the environment, sysfs available */
     110    { "invalid", "/dev/bus/usb", "/dev/vboxusb", true, NULL, false, VINF_SUCCESS, "/dev/vboxusb", false, VINF_SUCCESS },
     111    /* invalid method in the environment, usbfs available */
     112    { "invalid", "/dev/bus/usb", NULL, true, "/proc/bus/usb", true, VINF_SUCCESS, "/proc/bus/usb", true, VINF_SUCCESS },
     113    /* invalid method in the environment, sysfs inaccessible */
     114    { "invalid", "/dev/bus/usb", "/dev/vboxusb", false, NULL, false, VINF_SUCCESS, "", true, VERR_VUSB_USB_DEVICE_PERMISSION },
     115    /* invalid method in the environment, usbfs inaccessible */
     116    { "invalid", "/dev/bus/usb", NULL, false, "/proc/bus/usb", false, VINF_SUCCESS, "", true, VERR_VUSB_USBFS_PERMISSION },
     117    /* No environment, sysfs and usbfs available but without access permissions. */
    113118    { NULL, NULL, "/dev/vboxusb", false, "/proc/bus/usb", false, VERR_NO_MEMORY, "", true, VERR_VUSB_USB_DEVICE_PERMISSION },
    114     /* No environment, sysfs and usbfs available, access permissions for sysfs,
    115      * method-specific init failed. */
    116     { NULL, NULL, "/dev/vboxusb", true, "/proc/bus/usb", false, VERR_NO_MEMORY, "/dev/vboxusb", false, VERR_NO_MEMORY },
     119    /* No environment, sysfs and usbfs available, access permissions for sysfs. */
     120    { NULL, NULL, "/dev/vboxusb", true, "/proc/bus/usb", false, VINF_SUCCESS, "/dev/vboxusb", false, VINF_SUCCESS },
     121    /* No environment, sysfs and usbfs available, access permissions for usbfs. */
     122    { NULL, NULL, "/dev/vboxusb", false, "/proc/bus/usb", true, VINF_SUCCESS, "/proc/bus/usb", true, VINF_SUCCESS },
     123    /* No environment, sysfs available but without access permissions. */
     124    { NULL, NULL, "/dev/vboxusb", false, NULL, false, VERR_NO_MEMORY, "", true, VERR_VUSB_USB_DEVICE_PERMISSION },
     125    /* No environment, sysfs available with access permissions, method-specific init failed. */
     126    { NULL, NULL, "/dev/vboxusb", true, NULL, false, VERR_NO_MEMORY, "/dev/vboxusb", false, VERR_NO_MEMORY },
    117127    /* No environment, usbfs available but without access permissions. */
    118128    { NULL, NULL, NULL, false, "/proc/bus/usb", false, VERR_NO_MEMORY, "", true, VERR_VUSB_USBFS_PERMISSION },
Note: See TracChangeset for help on using the changeset viewer.

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