Merge pull request #24342 from asmorkalov:as/java_test_status

Fail Java test suite, execution, if one of test failed.
pull/24354/head
Alexander Smorkalov 1 year ago committed by GitHub
commit 63819c1e1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      modules/core/misc/java/test/CoreTest.java
  2. 3
      modules/java/test/pure_test/build.xml

@ -962,9 +962,9 @@ public class CoreTest extends OpenCVTestCase {
assertEquals(0.0, d);
d = Core.Mahalanobis(line1, line2, covar);
assertTrue(d > 0.0);
// Bug: https://github.com/opencv/opencv/issues/24348
// d = Core.Mahalanobis(line1, line2, covar);
// assertTrue(d > 0.0);
}
public void testMax() {

@ -42,7 +42,7 @@
<target name="test" depends="jar">
<mkdir dir="${test.dir}"/>
<junit printsummary="withOutAndErr" haltonfailure="false" haltonerror="false" showoutput="true" logfailedtests="true" maxmemory="256m">
<junit printsummary="withOutAndErr" failureproperty="junit_test.failed" haltonfailure="false" haltonerror="false" showoutput="true" logfailedtests="true" maxmemory="256m">
<sysproperty key="java.library.path" path="${opencv.lib.path}"/>
<env key="PATH" path="${opencv.lib.path}:${env.PATH}:${env.Path}"/>
<env key="DYLD_LIBRARY_PATH" path="${env.OPENCV_SAVED_DYLD_LIBRARY_PATH}"/> <!-- https://github.com/opencv/opencv/issues/14353 -->
@ -65,6 +65,7 @@
</fileset>
<report format="noframes" todir="${test.dir}"/>
</junitreport>
<fail message="JUnit test execution failed" if="junit_test.failed"/>
</target>
<target name="build" depends="jar">

Loading…
Cancel
Save