-
Notifications
You must be signed in to change notification settings - Fork 38.8k
tests: Remove unused includes #16278
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
tests: Remove unused includes #16278
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
ACK 30dfe9a86c29e6e95aac236b9273738e392cf86e (checked that added includes are required and that removed includes are not) |
| Needs rebase |
30dfe9a to
47a15fa
Compare
47a15fa to
04754f7
Compare
|
47a15fa47519a5ab16a3d6c1dd3227dd76076365 does not compile. CCLD libsecp256k1.la
CXX test/test_bitcoin-mempool_tests.o
test/fs_tests.cpp:14:26: error: use of undeclared identifier 'GetDataDir'
fs::path tmpfolder = GetDataDir();
^
1 error generated.
make[2]: *** [test/test_bitcoin-fs_tests.o] Error 1
make[2]: *** Waiting for unfinished jobs....
test/flatfile_tests.cpp:16:27: error: use of undeclared identifier 'GetDataDir'
const auto data_dir = GetDataDir();
^
test/flatfile_tests.cpp:29:27: error: use of undeclared identifier 'GetDataDir'
const auto data_dir = GetDataDir();
^
test/flatfile_tests.cpp:90:27: error: use of undeclared identifier 'GetDataDir'
const auto data_dir = GetDataDir();
^
test/flatfile_tests.cpp:110:27: error: use of undeclared identifier 'GetDataDir'
const auto data_dir = GetDataDir();
^
4 errors generated.
make[2]: *** [test/test_bitcoin-flatfile_tests.o] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check-recursive] Error 1 |
|
@fanquake That was fixed in 04754f7. Please re-review :-) |
…g unused includes in tests
04754f7 to
9a84169
Compare
9a84169 tests: Reduce compilation time and unneccessary recompiles by removing unused includes in tests (practicalswift) Pull request description: Reduce compilation time and unneccessary recompiles by removing unused includes in tests. A subset of bitcoin#16273 ("refactor: Reduce total compilation time by 2% and avoid unnecessary recompiles by removing unused includes") as requested by MarcoFalke in bitcoin#16273 (comment). ACKs for top commit: Sjors: ACK 9a84169 on macOS 10.14.5 (I rebased on bitcoin#16289) Tree-SHA512: bcb6ecffef689a9839bee1a5cb93abe83db1f30819a54226c5630fee456b5a5d187507d06861454adfda939c3556a975113f97662e415cb47fa0327ea4fd09fb
Summary: Backport of core [[bitcoin/bitcoin#16278 | PR16278]]. Depends on D5556. Test Plan: ninja all check Run the Gitian builds. Reviewers: #bitcoin_abc, jasonbcox Reviewed By: #bitcoin_abc, jasonbcox Subscribers: jasonbcox Differential Revision: https://reviews.bitcoinabc.org/D5558
9a84169 tests: Reduce compilation time and unneccessary recompiles by removing unused includes in tests (practicalswift) Pull request description: Reduce compilation time and unneccessary recompiles by removing unused includes in tests. A subset of bitcoin#16273 ("refactor: Reduce total compilation time by 2% and avoid unnecessary recompiles by removing unused includes") as requested by MarcoFalke in bitcoin#16273 (comment). ACKs for top commit: Sjors: ACK 9a84169 on macOS 10.14.5 (I rebased on bitcoin#16289) Tree-SHA512: bcb6ecffef689a9839bee1a5cb93abe83db1f30819a54226c5630fee456b5a5d187507d06861454adfda939c3556a975113f97662e415cb47fa0327ea4fd09fb
9a84169 tests: Reduce compilation time and unneccessary recompiles by removing unused includes in tests (practicalswift) Pull request description: Reduce compilation time and unneccessary recompiles by removing unused includes in tests. A subset of bitcoin#16273 ("refactor: Reduce total compilation time by 2% and avoid unnecessary recompiles by removing unused includes") as requested by MarcoFalke in bitcoin#16273 (comment). ACKs for top commit: Sjors: ACK 9a84169 on macOS 10.14.5 (I rebased on bitcoin#16289) Tree-SHA512: bcb6ecffef689a9839bee1a5cb93abe83db1f30819a54226c5630fee456b5a5d187507d06861454adfda939c3556a975113f97662e415cb47fa0327ea4fd09fb Co-authored-by: MarcoFalke <[email protected]>
Reduce compilation time and unneccessary recompiles by removing unused includes in tests.
A subset of #16273 ("refactor: Reduce total compilation time by 2% and avoid unnecessary recompiles by removing unused includes") as requested by MarcoFalke in #16273 (comment).