Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/eal: fix loop coverage for alignment macros
[ upstream commit b3e64fe596a3117edf6d3a79a6c5238a9b92dc4f ] The test loop was much shorter than desired because when MAX_NUM is defined with out paren's the divide operator / takes precedence over shift. But when MAX_NUM is fixed, some tests take too long and have to be modified to avoid running over full N^2 space of 1<<20. Note: this is a very old bug, goes back to 2013. Link: https://pvs-studio.com/en/blog/posts/cpp/1179/ Fixes: 1fb8b07 ("app: add some tests") Signed-off-by: Stephen Hemminger <[email protected]> Acked-by: Bruce Richardson <[email protected]>
- Loading branch information