1
0
Fork 0

make SYS_UNIT_TESTS_RESULT writeable

This commit is contained in:
Jan Steemann 2014-02-26 13:35:12 +01:00
parent 276a3cf3a1
commit 90d6a337da
1 changed files with 3 additions and 1 deletions

View File

@ -1426,7 +1426,9 @@ static bool RunUnitTests (v8::Handle<v8::Context> context) {
}
TRI_AddGlobalVariableVocbase(context, "SYS_UNIT_TESTS", sysTestFiles);
TRI_AddGlobalVariableVocbase(context, "SYS_UNIT_TESTS_RESULT", v8::True());
// do not use TRI_AddGlobalVariableVocBase because it creates read-only variables!!
context->Global()->Set(v8::String::New("SYS_UNIT_TESTS_RESULT"), v8::True());
// run tests
char const* input = "require(\"jsunity\").runCommandLineTests();";