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

Some unit test failures on Apple M2 Silicon #436

Closed
louis-langholtz opened this issue Feb 6, 2023 · 0 comments · Fixed by #437
Closed

Some unit test failures on Apple M2 Silicon #436

louis-langholtz opened this issue Feb 6, 2023 · 0 comments · Fixed by #437
Assignees
Labels
Bug For issues or changes that describe or fix bugs. macOS
Milestone

Comments

@louis-langholtz
Copy link
Owner

louis-langholtz commented Feb 6, 2023

Expected/Desired Behavior or Experience:

Unit tests all pass on Apple Silicon on master branch.

Actual Behavior:

The following unit test failures are seen on Apple M2 Silicon from the master branch:

PlayRho/UnitTests/World.cpp:2798: Failure
Expected: (world->GetContactRange()) <= (1450u), actual: 1451 vs 1450
PlayRho/UnitTests/World.cpp:2800: Failure
Expected: (totalBodiesSlept) <= (668u), actual: 670 vs 668
PlayRho/UnitTests/World.cpp:2957: Failure
Expected equality of these values:
  numSteps
    Which is: 1799
  1814ul
    Which is: 1814
PlayRho/UnitTests/World.cpp:2958: Failure
Expected equality of these values:
  sumRegPosIters
    Which is: 36512
  36600ul
    Which is: 36600
PlayRho/UnitTests/World.cpp:2959: Failure
Expected equality of these values:
  sumRegVelIters
    Which is: 46940
  264096ul
    Which is: 264096
PlayRho/UnitTests/World.cpp:2960: Failure
Expected equality of these values:
  sumToiPosIters
    Which is: 44021
  45022ul
    Which is: 45022
PlayRho/UnitTests/World.cpp:2961: Failure
Expected equality of these values:
  sumToiVelIters
    Which is: 113137
  148560ul
    Which is: 148560
[  FAILED  ] World_Longer.TilesComesToRest (2118 ms)
PlayRho/UnitTests/functional.cpp:27: Failure
Expected equality of these values:
  sizeof(std::function<int()>)
    Which is: 32
  std::size_t(48)
    Which is: 48
PlayRho/UnitTests/functional.cpp:28: Failure
Expected equality of these values:
  sizeof(std::function<void(int)>)
    Which is: 32
  std::size_t(48)
    Which is: 48
PlayRho/UnitTests/functional.cpp:29: Failure
Expected equality of these values:
  sizeof(std::function<float(int)>)
    Which is: 32
  std::size_t(48)
    Which is: 48
PlayRho/UnitTests/functional.cpp:30: Failure
Expected equality of these values:
  sizeof(std::function<int(float)>)
    Which is: 32
  std::size_t(48)
    Which is: 48
PlayRho/UnitTests/functional.cpp:31: Failure
Expected equality of these values:
  sizeof(std::function<int(double)>)
    Which is: 32
  std::size_t(48)
    Which is: 48
PlayRho/UnitTests/functional.cpp:32: Failure
Expected equality of these values:
  sizeof(std::function<int(double, long, void*)>)
    Which is: 32
  std::size_t(48)
    Which is: 48
[  FAILED  ] functional.FunctionSize (0 ms)
[==========] 1158 tests from 113 test suites ran. (3020 ms total)
[  PASSED  ] 1156 tests.

Steps to Reproduce the Actual Behavior:

cd Playrho
mkdir ../Playrho-build
cd ../Playrho-build
cmake -DPLAYRHO_BUILD_UNIT_TESTS=ON ../PlayRho
make
cd UnitTests
./UnitTests --gtest_brief=1
@louis-langholtz louis-langholtz added Bug For issues or changes that describe or fix bugs. macOS labels Feb 6, 2023
@louis-langholtz louis-langholtz added this to the 1.0+ milestone Feb 6, 2023
@louis-langholtz louis-langholtz self-assigned this Feb 6, 2023
@louis-langholtz louis-langholtz added this to To Do in 100% Unit Test Coverage via automation Feb 6, 2023
louis-langholtz added a commit that referenced this issue Feb 6, 2023
louis-langholtz added a commit that referenced this issue Feb 6, 2023
100% Unit Test Coverage automation moved this from To Do to Done Feb 6, 2023
louis-langholtz added a commit that referenced this issue Feb 8, 2023
Fix for issue #436.

(cherry picked from commit b579ca4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For issues or changes that describe or fix bugs. macOS
Projects
Development

Successfully merging a pull request may close this issue.

1 participant