Changeset View
Changeset View
Standalone View
Standalone View
src/qt/test/rpcnestedtests.cpp
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | std::string path = | ||||
(int)(GetRand(100000))); | (int)(GetRand(100000))); | ||||
QDir dir(QString::fromStdString(path)); | QDir dir(QString::fromStdString(path)); | ||||
dir.mkpath("."); | dir.mkpath("."); | ||||
gArgs.ForceSetArg("-datadir", path); | gArgs.ForceSetArg("-datadir", path); | ||||
// mempool.setSanityCheck(1.0); | // mempool.setSanityCheck(1.0); | ||||
TestingSetup test; | TestingSetup test; | ||||
SetRPCWarmupFinished(); | |||||
std::string result; | std::string result; | ||||
std::string result2; | std::string result2; | ||||
std::string filtered; | std::string filtered; | ||||
// Simple result filtering with path. | // Simple result filtering with path. | ||||
RPCConsole::RPCExecuteCommandLine(result, "getblockchaininfo()[chain]", | RPCConsole::RPCExecuteCommandLine(result, "getblockchaininfo()[chain]", | ||||
&filtered); | &filtered); | ||||
QVERIFY(result == "main"); | QVERIFY(result == "main"); | ||||
▲ Show 20 Lines • Show All 143 Lines • Show Last 20 Lines |