1
0
mirror of https://github.com/mik3y/usb-serial-for-android.git synced 2026-08-11 08:22:52 +00:00

read w/o timeout now throws exception on connection lost or buffer to small

SerialInputOutputManager already returned connection lost exception, as the next read failed
This commit is contained in:
kai-morich
2021-03-22 08:57:16 +01:00
parent 2d4d2f78a5
commit f4166f34a0
10 changed files with 138 additions and 45 deletions
+3 -3
View File
@@ -40,7 +40,7 @@ android {
buildTypes {
debug {
testCoverageEnabled true
testCoverageEnabled true // disable for testAnyDeviceDebugUnitTest
}
}
}
@@ -53,7 +53,7 @@ project.gradle.taskGraph.whenReady {
}
task jacocoTestReport(type: JacocoReport ,
dependsOn: ['compileAnyDeviceDebugSources' /*'testDebugUnitTest', 'createAnyDeviceDebugCoverageReport'*/]) {
dependsOn: ['compileAnyDeviceDebugSources' /*'testAnyDeviceDebugUnitTest' , 'create<device>DebugCoverageReport'*/]) {
reports {
xml.enabled = false
html.enabled = true
@@ -66,6 +66,6 @@ task jacocoTestReport(type: JacocoReport ,
sourceDirectories.from files([mainSrc])
classDirectories.from files([debugTree])
executionData.from fileTree(dir: project.buildDir, includes: [
/*'jacoco/testDebugUnitTest.exec',*/ 'outputs/code_coverage/*AndroidTest/connected/*.ec'
'jacoco/testAnyDeviceDebugUnitTest.exec', 'outputs/code_coverage/*AndroidTest/connected/*.ec'
])
}