Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/apptests.cpp
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | #endif | ||||
m_app.requestInitialize(config, rpcServer, httpRPCRequestProcessor); | m_app.requestInitialize(config, rpcServer, httpRPCRequestProcessor); | ||||
m_app.exec(); | m_app.exec(); | ||||
m_app.requestShutdown(config); | m_app.requestShutdown(config); | ||||
m_app.exec(); | m_app.exec(); | ||||
// Reset global state to avoid interfering with later tests. | // Reset global state to avoid interfering with later tests. | ||||
AbortShutdown(); | AbortShutdown(); | ||||
UnloadBlockIndex(); | UnloadBlockIndex(); | ||||
g_chainman.Reset(); | |||||
} | } | ||||
//! Entry point for BitcoinGUI tests. | //! Entry point for BitcoinGUI tests. | ||||
void AppTests::guiTests(BitcoinGUI *window) { | void AppTests::guiTests(BitcoinGUI *window) { | ||||
HandleCallback callback{"guiTests", *this}; | HandleCallback callback{"guiTests", *this}; | ||||
connect(window, &BitcoinGUI::consoleShown, this, &AppTests::consoleTests); | connect(window, &BitcoinGUI::consoleShown, this, &AppTests::consoleTests); | ||||
expectCallback("consoleTests"); | expectCallback("consoleTests"); | ||||
QAction *action = window->findChild<QAction *>("openRPCConsoleAction"); | QAction *action = window->findChild<QAction *>("openRPCConsoleAction"); | ||||
Show All 19 Lines |