mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix verifyOutputBuffer return value in printf (#99)
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:
@@ -855,14 +855,14 @@ size_t verifyOutputBuffer(char *analysisBuffer,testCase* pTestCase,size_t testId
|
||||
|
||||
char* eCorrectBuffer = strstr((char*)pTestCase->_correctBuffer[testId],correctExp);
|
||||
if(eCorrectBuffer == NULL)
|
||||
return false;
|
||||
return 1;
|
||||
|
||||
eCorrectBuffer+=2;
|
||||
exp += 2;
|
||||
|
||||
//Exponent always contains at least two digits
|
||||
if(strlen(exp) < 2)
|
||||
return false;
|
||||
return 1;
|
||||
//Scip leading zeros in the exponent
|
||||
while(*exp == '0')
|
||||
++exp;
|
||||
|
||||
Reference in New Issue
Block a user