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 32-bit #34

Open
AdamWill opened this issue Jul 28, 2015 · 1 comment
Open

Test fails on 32-bit #34

AdamWill opened this issue Jul 28, 2015 · 1 comment
Labels

Comments

@AdamWill
Copy link

Similar to core, one of the trajectory tests fails on 32-bit compile (with GCC 5.1.1):

15: /builddir/build/BUILD/roboptim-trajectory-3.1/tests/cubic-b-spline-matplotlib.cc(113): error in "trajectory_cubic_b_spline_matplotlib": check output->match_pattern () failed. Mismatch at position 8040

Full build log is available for now (will expire in a few weeks).

@bchretien
Copy link
Member

This looks like numerical errors in the stdout files, e.g.:

# 1st derivative:
# [2](0,0)
# [2](28.125,-3.125)
# [2](3.10862e-13,3.10862e-13)

vs

# 1st derivative:
# [2](0,0)
# [2](28.125,-3.125)
# [2](0,0)

We can normalize values close to 0 before printing to avoid this problem. Since we're not printing with a great precision, the nonzero values should be ok. Also, the Fedora build logs contain all the output, so these errors should be easy to track down.

@bchretien bchretien added the bug label Jul 29, 2015
bchretien added a commit that referenced this issue Jan 26, 2016
This may solve the issue reported in #34.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants