Run in optimizer mode when requested

This commit is contained in:
Alex Beregszaszi 2017-05-06 10:48:02 +01:00
parent 31bd4acf66
commit 41b5361b3f

View File

@ -26,6 +26,7 @@
#include <libdevcore/JSON.h> #include <libdevcore/JSON.h>
#include "../Metadata.h" #include "../Metadata.h"
#include "../TestHelper.h"
using namespace std; using namespace std;
@ -46,7 +47,7 @@ namespace
Json::Value compile(string const& _input) Json::Value compile(string const& _input)
{ {
string output(compileJSONMulti(_input.c_str(), false)); string output(compileJSONMulti(_input.c_str(), dev::test::Options::get().optimize));
Json::Value ret; Json::Value ret;
BOOST_REQUIRE(Json::Reader().parse(output, ret, false)); BOOST_REQUIRE(Json::Reader().parse(output, ret, false));
return ret; return ret;