@@ -86,32 +86,32 @@ int main(int argc, char* argv[])
8686 app.setApplicationName (" Bitcoin-Qt-test" );
8787 app.createNode (*init);
8888
89- int fInvalid {0 };
89+ int num_test_failures {0 };
9090
9191 AppTests app_tests (app);
92- fInvalid += QTest::qExec (&app_tests);
92+ num_test_failures += QTest::qExec (&app_tests);
9393
9494 OptionTests options_tests (app.node ());
95- fInvalid += QTest::qExec (&options_tests);
95+ num_test_failures += QTest::qExec (&options_tests);
9696
9797 URITests test1;
98- fInvalid += QTest::qExec (&test1);
98+ num_test_failures += QTest::qExec (&test1);
9999
100100 RPCNestedTests test3 (app.node ());
101- fInvalid += QTest::qExec (&test3);
101+ num_test_failures += QTest::qExec (&test3);
102102
103103#ifdef ENABLE_WALLET
104104 WalletTests test5 (app.node ());
105- fInvalid += QTest::qExec (&test5);
105+ num_test_failures += QTest::qExec (&test5);
106106
107107 AddressBookTests test6 (app.node ());
108- fInvalid += QTest::qExec (&test6);
108+ num_test_failures += QTest::qExec (&test6);
109109#endif
110110
111- if (fInvalid ) {
112- qWarning (" \n Failed tests: %d\n " , fInvalid );
111+ if (num_test_failures ) {
112+ qWarning (" \n Failed tests: %d\n " , num_test_failures );
113113 } else {
114114 qDebug (" \n All tests passed.\n " );
115115 }
116- return fInvalid ;
116+ return num_test_failures ;
117117}
0 commit comments