aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Jentzsch <jentzsch.software@gmail.com>2014-10-21 23:02:49 +0800
committerChristoph Jentzsch <jentzsch.software@gmail.com>2014-10-21 23:02:49 +0800
commit60a7ff58a1c6061a838b5d50b7f24d1ac05193b9 (patch)
treebf6827b119d6ceb467ad059a5a82908a7d9f5527
parent6c0b16bc032b89520d737f313e31c03856783f9f (diff)
downloaddexon-solidity-60a7ff58a1c6061a838b5d50b7f24d1ac05193b9.tar.gz
dexon-solidity-60a7ff58a1c6061a838b5d50b7f24d1ac05193b9.tar.zst
dexon-solidity-60a7ff58a1c6061a838b5d50b7f24d1ac05193b9.zip
Change output of random test to std::out instead of file
-rw-r--r--createRandomTest.cpp18
1 files changed, 3 insertions, 15 deletions
diff --git a/createRandomTest.cpp b/createRandomTest.cpp
index 2508d89f..28e4342d 100644
--- a/createRandomTest.cpp
+++ b/createRandomTest.cpp
@@ -42,11 +42,7 @@ void doMyTests(json_spirit::mValue& v);
int main(int argc, char *argv[])
{
-// if (argc != 2)
-// {
-// cout << "usage: createRandomTest <filename>\n";
-// return 0;
-// }
+ g_logVerbosity = 0;
// create random code
@@ -114,16 +110,8 @@ int main(int argc, char *argv[])
// execute code in vm
doMyTests(v);
-// // write new test
-// string filename = argv[1];
-// writeFile(filename, asBytes(json_spirit::write_string(v, true)));
-
- // write resultsing test to envirnoment variable
- string str = "ETHEREUM_RANDOM_TEST=" + json_spirit::write_string(v, true);
- char *cstr = new char[str.length() + 1];
- strcpy(cstr, str.c_str());
- putenv(cstr);
- delete [] cstr;
+ // stream to output for further handling by the bash script
+ cout << json_spirit::write_string(v, true);
return 0;
}