Commit 49901d26 authored by hybrid's avatar hybrid

Fix output of the correct test number for sub-process

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2846 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 4577afdb
......@@ -152,7 +152,7 @@ int main(int argumentCount, char * arguments[])
{
closeTestLog();
char runNextTest[256];
(void)sprintf(runNextTest, "\"%s\" %d", arguments[0], -i);
(void)sprintf(runNextTest, "\"%s\" -%d 1", arguments[0], i+1);
// Spawn the next test in a new process.
if (system(runNextTest))
{
......@@ -208,7 +208,7 @@ int main(int argumentCount, char * arguments[])
}
else
{
const bool res = tests[testToRun].testSignature();
const bool res = tests[testToRun-1].testSignature();
closeTestLog();
return res?0:1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment