Skip to content

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Jun 1, 2018

This adds some missing return false for error conditions and adds test coverage [1] for those.

Also, extend recursion warning when the chain was set in one of the includeconfs.

[1] See the red lines in https://marcofalke.github.io/btc_cov/total.coverage/src/util.cpp.gcov.html for missing coverage.

@maflcko maflcko added the Tests label Jun 1, 2018
@maflcko
Copy link
Member Author

maflcko commented Jun 1, 2018

The recursion warning is a minor esoteric fixup, that can be tested with:

$ echo 'includeconf=/tmp/test.conf' > /tmp/bitcoin.conf
$ echo 'testnet=1
main.includeconf=WARN1
test.includeconf=WARN2' > /tmp/test.conf
$ ./src/qt/bitcoin-qt -datadir=/tmp  # Run with binary once before, once after my commit

@laanwj
Copy link
Member

laanwj commented Jun 4, 2018

Thanks for adding better error handling and tests to argument parsing.
utACK fa4760f

@laanwj laanwj merged commit fa4760f into bitcoin:master Jun 5, 2018
@maflcko maflcko deleted the Mf1806-qaIncludeconf branch June 5, 2018 18:25
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Jun 19, 2021
fa4760f qa: Increase includeconf test coverage (MarcoFalke)

Pull request description:

  This adds some missing `return false` for error conditions and adds test coverage [1] for those.

  Also, extend recursion warning when the chain was set in one of the includeconfs.

  [1] See the red lines in https://marcofalke.github.io/btc_cov/total.coverage/src/util.cpp.gcov.html for missing coverage.

Tree-SHA512: d32563c9bb277879895a173e699034db5ecdb4061a1ec8890c566d61e36a09efa5eda19a029baf952ff6d568f8b9684a13a0bb90827850075470975e2088fee4
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Jun 24, 2021
fa4760f qa: Increase includeconf test coverage (MarcoFalke)

Pull request description:

  This adds some missing `return false` for error conditions and adds test coverage [1] for those.

  Also, extend recursion warning when the chain was set in one of the includeconfs.

  [1] See the red lines in https://marcofalke.github.io/btc_cov/total.coverage/src/util.cpp.gcov.html for missing coverage.

Tree-SHA512: d32563c9bb277879895a173e699034db5ecdb4061a1ec8890c566d61e36a09efa5eda19a029baf952ff6d568f8b9684a13a0bb90827850075470975e2088fee4
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Jun 26, 2021
fa4760f qa: Increase includeconf test coverage (MarcoFalke)

Pull request description:

  This adds some missing `return false` for error conditions and adds test coverage [1] for those.

  Also, extend recursion warning when the chain was set in one of the includeconfs.

  [1] See the red lines in https://marcofalke.github.io/btc_cov/total.coverage/src/util.cpp.gcov.html for missing coverage.

Tree-SHA512: d32563c9bb277879895a173e699034db5ecdb4061a1ec8890c566d61e36a09efa5eda19a029baf952ff6d568f8b9684a13a0bb90827850075470975e2088fee4
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Jun 26, 2021
fa4760f qa: Increase includeconf test coverage (MarcoFalke)

Pull request description:

  This adds some missing `return false` for error conditions and adds test coverage [1] for those.

  Also, extend recursion warning when the chain was set in one of the includeconfs.

  [1] See the red lines in https://marcofalke.github.io/btc_cov/total.coverage/src/util.cpp.gcov.html for missing coverage.

Tree-SHA512: d32563c9bb277879895a173e699034db5ecdb4061a1ec8890c566d61e36a09efa5eda19a029baf952ff6d568f8b9684a13a0bb90827850075470975e2088fee4
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request Jun 28, 2021
fa4760f qa: Increase includeconf test coverage (MarcoFalke)

Pull request description:

  This adds some missing `return false` for error conditions and adds test coverage [1] for those.

  Also, extend recursion warning when the chain was set in one of the includeconfs.

  [1] See the red lines in https://marcofalke.github.io/btc_cov/total.coverage/src/util.cpp.gcov.html for missing coverage.

Tree-SHA512: d32563c9bb277879895a173e699034db5ecdb4061a1ec8890c566d61e36a09efa5eda19a029baf952ff6d568f8b9684a13a0bb90827850075470975e2088fee4
@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.

2 participants