forked from usb4java/usb4java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
49 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,6 @@ target | |
.classpath | ||
.project | ||
.idea | ||
.vscode | ||
*.iml | ||
hs_err_*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,12 +18,12 @@ | |
|
||
/** | ||
* Tests the hotplug part of the {@link LibUsb} class. | ||
* | ||
* | ||
* @author Klaus Reimer ([email protected]) | ||
*/ | ||
public class LibUsbHotplugTest | ||
{ | ||
/** The libusb contxet. */ | ||
/** The libusb context. */ | ||
private Context context; | ||
|
||
/** | ||
|
@@ -95,7 +95,7 @@ public int processEvent(Context context, Device device, | |
} | ||
|
||
/** | ||
* Ensures that no hotplug event is fired when enumeration is deactived. | ||
* Ensures that no hotplug event is fired when enumeration is deactivated. | ||
* When no devices are connected then this test is pretty much useless but | ||
* won't fail because of that. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
|
||
/** | ||
* USB-related assumptions. | ||
* | ||
* | ||
* @author Klaus Reimer ([email protected]) | ||
*/ | ||
public class UsbAssume | ||
|
@@ -25,16 +25,16 @@ public class UsbAssume | |
|
||
/** If TCK tests are to be executed. */ | ||
private static Boolean tckTests; | ||
|
||
/** | ||
* Check if USB tests are enabled. | ||
* | ||
* | ||
* USB tests can be controlled with the system property USB_TESTS. When | ||
* set to true then USB tests are always run, if set to false then they | ||
* are never run. If this property is not set then the command-line tool | ||
* lsusb is called. If this tool returned at least two lines of text then | ||
* USB tests are enabled. In all other cases they are disabled. | ||
* | ||
* | ||
* @return True if USB tests are enabled, false if not. | ||
*/ | ||
public static boolean isUsbTestsEnabled() | ||
|
@@ -86,7 +86,7 @@ public static boolean isUsbTestsEnabled() | |
* Assume that USB tests are enabled. Call this in the first line of | ||
* tests method or preparation methods when you want to ignore the | ||
* tests when the system is not able to run the tests anyway. | ||
* | ||
* | ||
* USB tests can be controlled with the system property USB_TESTS. When | ||
* set to true then USB tests are always run, if set to false then they | ||
* are never run. If this property is not set then the command-line tool | ||
|
@@ -117,7 +117,7 @@ public static void assumeHotplugAvailable() | |
* Assume that TCK tests are enabled. Call this in the first line of | ||
* tests method or preparation methods when you want to ignore the | ||
* tests when the system is not able to run the TCK tests anyway. | ||
* | ||
* | ||
* TCK tests can be controlled with the system property TCK_TESTS. When | ||
* set to true then TCK tests are always run, if set to false then they | ||
* are never run. If this property is not set then the command-line tool | ||
|