Skip to content

Conversation

@JaredTate
Copy link

@JaredTate JaredTate commented Mar 15, 2024

This PR fixes amount_tests.cpp unit test on Linux. This test passes on mac but not linux because it appears the compilers handle it differently. Seems to be an int32 vs 64 issue. The test worked great for BTC, but not DGB with a larger MAX_MONEY integer.

make check should now pass on all platforms.

You can read more about Unit Tests here:
https://github.com/DigiByte-Core/digibyte/blob/develop/src/test/README.md

To Compile & Run Unit Tests:

  ./autogen.sh
  ./configure
  make -j 8
  make check

Run Specific Unit Test Fixed

cd src/test
./test_digibyte --run_test=amount_tests

Thanks to @Jongjan88 for pointing this out & testing the fix!

@ycagel ycagel requested review from a user, SmartArray, digicontributer, gto90, j50ng and ycagel March 15, 2024 17:20
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK Nice work. @JaredTate

@JaredTate
Copy link
Author

ACK Nice work. @JaredTate

Thank you for identifying this issue, working on a fix & testing it on Linux!

Copy link
Member

@ycagel ycagel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cACK

Copy link
Member

@gto90 gto90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cACK

@gto90 gto90 merged commit 50748be into DigiByte-Core:develop Mar 15, 2024
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.

3 participants