aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2022-04-06 23:43:27 +0200
committerJon Atack <jon@atack.com>2022-04-06 23:52:34 +0200
commitd025d7f0251e26b7ab5cf48c236b6b5e46fafe26 (patch)
tree76b7fb4add649d4429e046f58c964cdcff9f5bc3 /src/qt
parent2489b6fe9cd1b669362d459e93185ca0bd9f8714 (diff)
gui, refactor: rename fInvalid to num_test_failures in test_main.cpp
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/test/test_main.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/qt/test/test_main.cpp b/src/qt/test/test_main.cpp
index 6a895ae9b4..aeedd92834 100644
--- a/src/qt/test/test_main.cpp
+++ b/src/qt/test/test_main.cpp
@@ -86,32 +86,32 @@ int main(int argc, char* argv[])
app.setApplicationName("Bitcoin-Qt-test");
app.createNode(*init);
- int fInvalid{0};
+ int num_test_failures{0};
AppTests app_tests(app);
- fInvalid += QTest::qExec(&app_tests);
+ num_test_failures += QTest::qExec(&app_tests);
OptionTests options_tests(app.node());
- fInvalid += QTest::qExec(&options_tests);
+ num_test_failures += QTest::qExec(&options_tests);
URITests test1;
- fInvalid += QTest::qExec(&test1);
+ num_test_failures += QTest::qExec(&test1);
RPCNestedTests test3(app.node());
- fInvalid += QTest::qExec(&test3);
+ num_test_failures += QTest::qExec(&test3);
#ifdef ENABLE_WALLET
WalletTests test5(app.node());
- fInvalid += QTest::qExec(&test5);
+ num_test_failures += QTest::qExec(&test5);
AddressBookTests test6(app.node());
- fInvalid += QTest::qExec(&test6);
+ num_test_failures += QTest::qExec(&test6);
#endif
- if (fInvalid) {
- qWarning("\nFailed tests: %d\n", fInvalid);
+ if (num_test_failures) {
+ qWarning("\nFailed tests: %d\n", num_test_failures);
} else {
qDebug("\nAll tests passed.\n");
}
- return fInvalid;
+ return num_test_failures;
}