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

UNIT_SpeedLimiter_TEST failure on line 61 on ppc64le and arm64/aarch64 architecture #203

Closed
traversaro opened this issue Mar 31, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@traversaro
Copy link
Contributor

Environment

  • OS Version: CentOS 6 (with conda-forge provided dependencies)
  • Source or binary build? Source v6.8.0

Description

  • Expected behavior: The test suite should pass
  • Actual behavior: The UNIT_SpeedLimiter_TEST does not pass

Steps to reproduce

Take a arm64/aarch64 or ppc64le machine, and run the test suite.

Output

Output on ppc64le (https://travis-ci.org/github/conda-forge/libignition-math4-feedstock/builds/765232218):

61/98 Test #61: UNIT_SpeedLimiter_TEST .................***Failed    0.18 sec
Running main() from gtest_main.cc
[==========] Running 5 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 5 tests from SpeedLimiterTest
[ RUN      ] SpeedLimiterTest.Default
$SRC_DIR/src/SpeedLimiter_TEST.cc:60: Failure
Expected equality of these values:
  0.0
    Which is: 0
  limiter.Limit(vel, 4.0, 3.0, 1ms)
    Which is: -8.3266726846886741e-17
$SRC_DIR/src/SpeedLimiter_TEST.cc:61: Failure
Expected equality of these values:
  0.0
    Which is: 0
  vel
    Which is: -8.3266726846886741e-17
[  FAILED  ] SpeedLimiterTest.Default (0 ms)
[ RUN      ] SpeedLimiterTest.LimitVelocity
[       OK ] SpeedLimiterTest.LimitVelocity (0 ms)
[ RUN      ] SpeedLimiterTest.LimitAcceleration
[       OK ] SpeedLimiterTest.LimitAcceleration (0 ms)
[ RUN      ] SpeedLimiterTest.LimitJerk
[       OK ] SpeedLimiterTest.LimitJerk (0 ms)
[ RUN      ] SpeedLimiterTest.LimitAll
[       OK ] SpeedLimiterTest.LimitAll (0 ms)
[----------] 5 tests from SpeedLimiterTest (0 ms total)

[----------] Global test environment tear-down
[==========] 5 tests from 1 test case ran. (0 ms total)
[  PASSED  ] 4 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] SpeedLimiterTest.Default

 1 FAILED TEST

Output on arm64/aarch64:

61/98 Test #61: UNIT_SpeedLimiter_TEST .................***Failed    0.03 sec
Running main() from gtest_main.cc
[==========] Running 5 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 5 tests from SpeedLimiterTest
[ RUN      ] SpeedLimiterTest.Default
$SRC_DIR/src/SpeedLimiter_TEST.cc:60: Failure
Expected equality of these values:
  0.0
    Which is: 0
  limiter.Limit(vel, 4.0, 3.0, 1ms)
    Which is: -8.3266726846886741e-17
$SRC_DIR/src/SpeedLimiter_TEST.cc:61: Failure
Expected equality of these values:
  0.0
    Which is: 0
  vel
    Which is: -8.3266726846886741e-17
[  FAILED  ] SpeedLimiterTest.Default (0 ms)
[ RUN      ] SpeedLimiterTest.LimitVelocity
[       OK ] SpeedLimiterTest.LimitVelocity (0 ms)
[ RUN      ] SpeedLimiterTest.LimitAcceleration
[       OK ] SpeedLimiterTest.LimitAcceleration (0 ms)
[ RUN      ] SpeedLimiterTest.LimitJerk
[       OK ] SpeedLimiterTest.LimitJerk (0 ms)
[ RUN      ] SpeedLimiterTest.LimitAll
[       OK ] SpeedLimiterTest.LimitAll (0 ms)
[----------] 5 tests from SpeedLimiterTest (0 ms total)

[----------] Global test environment tear-down
[==========] 5 tests from 1 test case ran. (0 ms total)
[  PASSED  ] 4 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] SpeedLimiterTest.Default

 1 FAILED TEST
@traversaro traversaro added the bug Something isn't working label Mar 31, 2021
@traversaro
Copy link
Contributor Author

Probably it is the usual threshold problem.

@j-rivero
Copy link
Contributor

found the same while releasing. Should be fixed by #204

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants