@@ -86,32 +86,32 @@ int main(int argc, char* argv[])
86
86
app.setApplicationName (" Bitcoin-Qt-test" );
87
87
app.createNode (*init);
88
88
89
- int fInvalid {0 };
89
+ int num_test_failures {0 };
90
90
91
91
AppTests app_tests (app);
92
- fInvalid += QTest::qExec (&app_tests);
92
+ num_test_failures += QTest::qExec (&app_tests);
93
93
94
94
OptionTests options_tests (app.node ());
95
- fInvalid += QTest::qExec (&options_tests);
95
+ num_test_failures += QTest::qExec (&options_tests);
96
96
97
97
URITests test1;
98
- fInvalid += QTest::qExec (&test1);
98
+ num_test_failures += QTest::qExec (&test1);
99
99
100
100
RPCNestedTests test3 (app.node ());
101
- fInvalid += QTest::qExec (&test3);
101
+ num_test_failures += QTest::qExec (&test3);
102
102
103
103
#ifdef ENABLE_WALLET
104
104
WalletTests test5 (app.node ());
105
- fInvalid += QTest::qExec (&test5);
105
+ num_test_failures += QTest::qExec (&test5);
106
106
107
107
AddressBookTests test6 (app.node ());
108
- fInvalid += QTest::qExec (&test6);
108
+ num_test_failures += QTest::qExec (&test6);
109
109
#endif
110
110
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 );
113
113
} else {
114
114
qDebug (" \n All tests passed.\n " );
115
115
}
116
- return fInvalid ;
116
+ return num_test_failures ;
117
117
}
0 commit comments