Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented Jun 17, 2016

Currently we rely on the compiler to properly handle floating points. However, doing "some refactoring" triggers the floating point behavior to be unpredictable on different archs/compilers and the tests will fail. (e.g. 32 bit test binaries produced by the gnu compiler will fail)

It is trivial to get rid of that, so let's do it.

@maflcko maflcko added the Tests label Jun 17, 2016
BOOST_FIXTURE_TEST_SUITE(wallet_tests, WalletTestingSetup)

static CWallet wallet;
static const CWallet wallet;
Copy link
Member

Choose a reason for hiding this comment

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

Aside: We create a global static wallet object here? I never knew, assumed these tests would use the wallet created in WalletTestingSetup.

@laanwj
Copy link
Member

laanwj commented Jun 17, 2016

utACK faa91b1

@paveljanik
Copy link
Contributor

ACK faa91b1

@maflcko maflcko merged commit faa91b1 into bitcoin:master Jun 18, 2016
maflcko pushed a commit that referenced this pull request Jun 18, 2016
faa91b1 [wallet] tests: Don't use floating point (MarcoFalke)
@maflcko maflcko deleted the Mf1606-walletTestFloat branch June 18, 2016 14:53
codablock pushed a commit to codablock/dash that referenced this pull request Dec 28, 2017
faa91b1 [wallet] tests: Don't use floating point (MarcoFalke)
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
faa91b1 [wallet] tests: Don't use floating point (MarcoFalke)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants