Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test fails on apple m1 chip using openjdk8 #498

Open
cmal opened this issue Dec 30, 2021 · 0 comments
Open

test fails on apple m1 chip using openjdk8 #498

cmal opened this issue Dec 30, 2021 · 0 comments

Comments

@cmal
Copy link

cmal commented Dec 30, 2021


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant