@@ -3573,14 +3573,14 @@ GetTestInfoFromNode
3573
3573
3574
3574
if (childNode->Data != NULL && childNode->Data [0 ] != ' \0 ' )
3575
3575
{
3576
- char * data = childNode->Data ;
3577
- if (i == TIK_SOURCE_PATH && IsRelativePath (childNode->Data ))
3578
- {
3579
- // Make sure sourcepath is not relative, if relative make it full path
3580
- data = MakeFullPath (fileName, data);
3581
- ASSERT (data != NULL );
3582
- }
3583
- testInfo->data [i] = data;
3576
+ char * data = childNode->Data ;
3577
+ if (i == TIK_SOURCE_PATH && IsRelativePath (childNode->Data ))
3578
+ {
3579
+ // Make sure sourcepath is not relative, if relative make it full path
3580
+ data = MakeFullPath (fileName, data);
3581
+ ASSERT (data != NULL );
3582
+ }
3583
+ testInfo->data [i] = data;
3584
3584
}
3585
3585
else
3586
3586
{
@@ -3592,18 +3592,20 @@ GetTestInfoFromNode
3592
3592
// Validate the timeout string now to fail early so we don't run any tests when there is an error.
3593
3593
if (!IsTimeoutStringValid (testInfo->data [i])) {
3594
3594
CFG_ERROR_EX (fileName, node->LineNumber ,
3595
- " Invalid timeout specified. Cannot parse or too large.\n " , NULL );
3595
+ " Invalid timeout specified. Cannot parse or too large.\n " , NULL );
3596
3596
childNode->Dump ();
3597
3597
return FALSE ;
3598
3598
}
3599
-
3600
3599
}
3601
3600
}
3602
3601
}
3603
3602
if (i == TIK_TIMEOUT && TestTimeout != NULL )
3604
3603
{
3605
- // Overriding the timeout value with the command line value
3606
- testInfo->data [i] = TestTimeout;
3604
+ // Overriding the timeout value with the command line value (if the command line value is larger)
3605
+ if (testInfo->data [i] < TestTimeout)
3606
+ {
3607
+ testInfo->data [i] = TestTimeout;
3608
+ }
3607
3609
}
3608
3610
}
3609
3611
0 commit comments