Commit 54017dea authored by cutealien's avatar cutealien

Have to use fuzzy comparison instead of binary comparision in test...

Have to use fuzzy comparison instead of binary comparision in test writeImageToFile as it's using renderresult which can differ slightly in some pixels.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4171 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 7ae5d081
Tests finished. 1 test of 1 passed.
Compiled as DEBUG
Test suite pass at GMT Tue May 29 21:19:21 2012
Test suite pass at GMT Sat Jun 2 20:20:17 2012
......@@ -108,7 +108,8 @@ bool writeImageToFile(void)
writtenFile = 0;
referenceFilename = "media/Burning's Video-drawPixel.png";
if (!binaryCompareFiles(writtenFilename, referenceFilename))
if ( fuzzyCompareImages(driver,writtenFilename, referenceFilename) < 99.9)
{
logTestString("File written from memory is not the same as the reference file. %s:%d\n" , __FILE__, __LINE__);
// assert_log(false);
......
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