mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 16:29:03 +00:00
Fix verifyOutputBuffer return value in printf (#103)
Function verifyOutputBuffer returns non-zero value in case of mismatch. Return value 'false' means some mismatches are treated as matches. This commit fix this problem.
This commit is contained in:
@@ -859,14 +859,14 @@ size_t verifyOutputBuffer(char *analysisBuffer,testCase* pTestCase,size_t testId
|
|||||||
|
|
||||||
char* eCorrectBuffer = strstr((char*)pTestCase->_correctBuffer[testId],correctExp);
|
char* eCorrectBuffer = strstr((char*)pTestCase->_correctBuffer[testId],correctExp);
|
||||||
if(eCorrectBuffer == NULL)
|
if(eCorrectBuffer == NULL)
|
||||||
return false;
|
return 1;
|
||||||
|
|
||||||
eCorrectBuffer+=2;
|
eCorrectBuffer+=2;
|
||||||
exp += 2;
|
exp += 2;
|
||||||
|
|
||||||
//Exponent always contains at least two digits
|
//Exponent always contains at least two digits
|
||||||
if(strlen(exp) < 2)
|
if(strlen(exp) < 2)
|
||||||
return false;
|
return 1;
|
||||||
//Scip leading zeros in the exponent
|
//Scip leading zeros in the exponent
|
||||||
while(*exp == '0')
|
while(*exp == '0')
|
||||||
++exp;
|
++exp;
|
||||||
|
|||||||
Reference in New Issue
Block a user