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

Fix failing test pdp-calc1 #1245

Merged
merged 2 commits into from Jan 7, 2024

Conversation

c72578
Copy link
Collaborator

@c72578 c72578 commented Jan 6, 2024

The number of decimal places or the format can be different in the
output depending on the platform.

  • The failing test has appeared under msys2 (MINGW32 and MINGW64),
    where the exponential notation has changed:
    E.g. e+000 instead of e+00
  • Use DIFF9 also in test pdp-calc1, which reduces the number of
    decimal places to 7 using "%0.7e". See DIFF9 in tests/functions.
  • Update the pdp-calc1 output files accordingly
  • Fixes failing test pdp-calc1 under msys2

The number of decimal places or the format can be different in the
output depending on the platform.

- The failing test has appeared under msys2 (MINGW32 and MINGW64),
  where the exponential notation has changed:
  E.g. e+000 instead of e+00
- Use DIFF9 also in test pdp-calc1, which reduces the number of
  decimal places to 7 using "%0.7e". See DIFF9 in tests/functions.
- Update the pdp-calc1 output files accordingly
- Fixes failing test pdp-calc1 under msys2
Copy link

codecov bot commented Jan 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f713618) 51.02% compared to head (9f05fe6) 51.02%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1245   +/-   ##
=======================================
  Coverage   51.02%   51.02%           
=======================================
  Files          45       45           
  Lines       18214    18214           
=======================================
  Hits         9294     9294           
  Misses       8920     8920           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@c72578
Copy link
Collaborator Author

c72578 commented Jan 6, 2024

From current Windows CI / msys2 (windows-2022, x86_64) log file:
https://github.com/oetiker/rrdtool-1.x/actions/runs/7432999142/job/20225441786?pr=1245#step:5:1832
PASS: pdp-calc1

@c72578 c72578 merged commit 6892508 into oetiker:master Jan 7, 2024
9 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants