zeromq / jzmq

Java binding for ZeroMQ
http://www.zeromq.org
GNU General Public License v3.0
590 stars 364 forks source link

test fails on apple m1 chip using openjdk8 #498

Open cmal opened 2 years ago

cmal commented 2 years ago

T E S T S

Running org.zeromq.ZConfigTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec - in org.zeromq.ZConfigTest Running org.zeromq.ZCertStoreTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.023 sec - in org.zeromq.ZCertStoreTest Running org.zeromq.ZMsgTest Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec - in org.zeromq.ZMsgTest Running org.zeromq.ZDispatcherTest performanceTest message sent:1,000,000 Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.836 sec <<< FAILURE! - in org.zeromq.ZDispatcherTest dispatcherPerformanceTest(org.zeromq.ZDispatcherTest) Time elapsed: 0.826 sec <<< ERROR! java.lang.ArithmeticException: / by zero at org.zeromq.ZDispatcherTest.dispatcherPerformanceTest(ZDispatcherTest.java:226)

Running org.zeromq.ZContextTest Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.zeromq.ZContextTest Running org.zeromq.ZFrameTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in org.zeromq.ZFrameTest Running org.zeromq.ZAuthTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.424 sec - in org.zeromq.ZAuthTest Running org.zeromq.ZThreadTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in org.zeromq.ZThreadTest Running org.zeromq.ZLoopTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.056 sec - in org.zeromq.ZLoopTest

Results :

Tests in error: ZDispatcherTest.dispatcherPerformanceTest:226 Arithmetic / by zero

Tests run: 38, Failures: 0, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for jzmq-parent 3.1.1-SNAPSHOT: [INFO] [INFO] jzmq-parent ........................................ SUCCESS [ 0.136 s] [INFO] jzmq-jni ........................................... SUCCESS [ 10.970 s] [INFO] jzmq-core .......................................... FAILURE [ 7.094 s] [INFO] jzmq-devices ....................................... SKIPPED [INFO] jzmq ............................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 18.262 s [INFO] Finished at: 2021-12-30T20:43:49+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project jzmq-core: There are test failures. [ERROR] [ERROR] Please refer to /Users/yuzhao/jzmq/jzmq-core/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :jzmq-core

$ java -version
openjdk version "1.8.0_312" OpenJDK Runtime Environment (Zulu 8.58.0.13-CA-macos-aarch64) (build 1.8.0_312-b07) OpenJDK 64-Bit Server VM (Zulu 8.58.0.13-CA-macos-aarch64) (build 25.312-b07, mixed mode)

$uname -a
Darwin MyMacBook-Pro.local 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:01 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T6000 arm64