Volumes Of Fun
http://www.volumesoffun.com/phpBB3/

[Resolved] Failing voxel traits test
http://www.volumesoffun.com/phpBB3/viewtopic.php?f=15&t=330
Page 1 of 1

Author:  milliams [ Tue Feb 07, 2012 5:29 pm ]
Post subject:  [Resolved] Failing voxel traits test

With the recent changes voxel type traits, one of the tests seems to be failing. The output is:
Code:
********* Start testing of TestVoxels *********
Config: Using QTest library 4.4.3, Qt 4.4.3
PASS   : TestVoxels::initTestCase()
FAIL!  : TestVoxels::testVoxelTypeLimits() Compared floats are not the same (fuzzy compare)
   Actual (VoxelTypeTraits<DensityFloat>::minDensity()): -3.40282e+38
   Expected (FLT_MIN): 1.17549e-38
   Loc: [/home/milliams/polyvox/tests/TestVoxels.cpp(59)]
PASS   : TestVoxels::cleanupTestCase()
Totals: 2 passed, 1 failed, 0 skipped
********* Finished testing of TestVoxels *********
I can confirm the failing test on two other Linux boxes too. Basically, the difference is that the DensityFloat type's min value is being defined as -std::numeric_limits<DensityFloat::DensityType>::max() (the most negative number possible) but the test is checking for it being the smallest (closest to zero) positive number possible. I'd fix it myself but I'm not sure which way you intended it to work.

Author:  David Williams [ Wed Feb 08, 2012 9:47 am ]
Post subject:  Re: Failing voxel traits test

Thanks, it should be the most negative (-FLT_MAX) rather than the smallest positive (FLT_MIN), so I've fixed the test.

I didn't get an email from CDash to say it was failing though... did you get one or you just happened to notice? Perhaps it only sends one when a test breaks, and it had never passed in the first place?

Author:  milliams [ Wed Feb 08, 2012 9:59 am ]
Post subject:  Re: Failing voxel traits test

No, I didn't get an email. I noticed when I ran the tests locally. The test did fail overnight though but you must be right that it only sends an email when a test which was previously working fails.

The test is working fine now locally.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/