Changeset 36996 in vbox for trunk/src/VBox/Main/testcase
- Timestamp:
- May 6, 2011 11:09:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/testcase/tstUSBProxyLinux.cpp
r36995 r36996 91 91 /* "sysfs" and root in the environment, method-specific init failed */ 92 92 { "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) */ 95 94 { "sysfs", "/dev/bus/usb", "/dev/usbvbox", false, "/proc/usb/bus", false, VINF_SUCCESS, "/dev/bus/usb", false, VINF_SUCCESS }, 96 95 /* "sysfs" and bad root in the environment, method-specific init failed */ … … 102 101 /* "usbfs" and root in the environment, method-specific init failed */ 103 102 { "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) */ 106 104 { "usbfs", "/dev/bus/usb", "/dev/usbvbox", false, "/proc/usb/bus", false, VINF_SUCCESS, "/dev/bus/usb", true, VINF_SUCCESS }, 107 105 /* "usbfs" and bad root in the environment, method-specific init failed */ … … 109 107 /* "usbfs" and no root in the environment */ 110 108 { "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. */ 113 118 { 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 }, 117 127 /* No environment, usbfs available but without access permissions. */ 118 128 { 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.