Bugfix #79
parent
c8e0ebf816
commit
c1f3f485ec
|
@ -499,7 +499,7 @@ static void* safeMalloc(uint64_t size){
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void AllocResults(IOR_test_t *test)
|
void AllocResults(IOR_test_t *test)
|
||||||
{
|
{
|
||||||
int reps;
|
int reps;
|
||||||
if (test->results != NULL)
|
if (test->results != NULL)
|
||||||
|
@ -533,7 +533,6 @@ IOR_test_t *CreateTest(IOR_param_t *init_params, int test_num)
|
||||||
newTest->next = NULL;
|
newTest->next = NULL;
|
||||||
newTest->results = NULL;
|
newTest->results = NULL;
|
||||||
|
|
||||||
AllocResults(newTest);
|
|
||||||
return newTest;
|
return newTest;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -228,6 +228,8 @@ typedef struct IOR_test_t {
|
||||||
|
|
||||||
|
|
||||||
IOR_test_t *CreateTest(IOR_param_t *init_params, int test_num);
|
IOR_test_t *CreateTest(IOR_param_t *init_params, int test_num);
|
||||||
|
void AllocResults(IOR_test_t *test);
|
||||||
|
|
||||||
char * GetPlatformName();
|
char * GetPlatformName();
|
||||||
void init_IOR_Param_t(IOR_param_t *p);
|
void init_IOR_Param_t(IOR_param_t *p);
|
||||||
|
|
||||||
|
|
|
@ -396,6 +396,7 @@ IOR_test_t *ReadConfigScript(char *scriptName)
|
||||||
/* previous line was a "run" as well
|
/* previous line was a "run" as well
|
||||||
create duplicate test */
|
create duplicate test */
|
||||||
tail->next = CreateTest(&tail->params, test_num++);
|
tail->next = CreateTest(&tail->params, test_num++);
|
||||||
|
AllocResults(tail);
|
||||||
tail = tail->next;
|
tail = tail->next;
|
||||||
}
|
}
|
||||||
runflag = 1;
|
runflag = 1;
|
||||||
|
@ -404,6 +405,7 @@ IOR_test_t *ReadConfigScript(char *scriptName)
|
||||||
create and initialize a new test structure */
|
create and initialize a new test structure */
|
||||||
runflag = 0;
|
runflag = 0;
|
||||||
tail->next = CreateTest(&tail->params, test_num++);
|
tail->next = CreateTest(&tail->params, test_num++);
|
||||||
|
AllocResults(tail);
|
||||||
tail = tail->next;
|
tail = tail->next;
|
||||||
ParseLine(linebuf, &tail->params);
|
ParseLine(linebuf, &tail->params);
|
||||||
} else {
|
} else {
|
||||||
|
@ -414,6 +416,7 @@ IOR_test_t *ReadConfigScript(char *scriptName)
|
||||||
/* close the script */
|
/* close the script */
|
||||||
if (fclose(file) != 0)
|
if (fclose(file) != 0)
|
||||||
ERR("fclose() of script file failed");
|
ERR("fclose() of script file failed");
|
||||||
|
AllocResults(head);
|
||||||
|
|
||||||
return head;
|
return head;
|
||||||
}
|
}
|
||||||
|
@ -565,6 +568,7 @@ IOR_test_t *ParseCommandLine(int argc, char **argv)
|
||||||
tests = ReadConfigScript(testscripts);
|
tests = ReadConfigScript(testscripts);
|
||||||
}else{
|
}else{
|
||||||
tests = CreateTest(&initialTestParams, 0);
|
tests = CreateTest(&initialTestParams, 0);
|
||||||
|
AllocResults(tests);
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckRunSettings(tests);
|
CheckRunSettings(tests);
|
||||||
|
|
Loading…
Reference in New Issue