Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/rpcnestedtests.cpp
Show All 31 Lines | |||||
}; | }; | ||||
void RPCNestedTests::rpcNestedTests() { | void RPCNestedTests::rpcNestedTests() { | ||||
UniValue jsonRPCError; | UniValue jsonRPCError; | ||||
// Do some test setup could be moved to a more generic place when we add | // Do some test setup could be moved to a more generic place when we add | ||||
// more tests on QT level | // more tests on QT level | ||||
const Config &config = GetConfig(); | const Config &config = GetConfig(); | ||||
RegisterAllRPCCommands(tableRPC); | RegisterAllContextFreeRPCCommands(tableRPC); | ||||
tableRPC.appendCommand("rpcNestedTest", &vRPCCommands[0]); | tableRPC.appendCommand("rpcNestedTest", &vRPCCommands[0]); | ||||
ClearDatadirCache(); | ClearDatadirCache(); | ||||
std::string path = | std::string path = | ||||
QDir::tempPath().toStdString() + "/" + | QDir::tempPath().toStdString() + "/" + | ||||
strprintf("test_bitcoin_qt_%lu_%i", (unsigned long)GetTime(), | strprintf("test_bitcoin_qt_%lu_%i", (unsigned long)GetTime(), | ||||
(int)(GetRand(100000))); | (int)(GetRand(100000))); | ||||
QDir dir(QString::fromStdString(path)); | QDir dir(QString::fromStdString(path)); | ||||
dir.mkpath("."); | dir.mkpath("."); | ||||
▲ Show 20 Lines • Show All 173 Lines • Show Last 20 Lines |