random test failures

Dirk Hohndel dirk at hohndel.org
Mon Jul 3 07:25:42 PDT 2017


Miika, anyone,

For some odd reason we get random test failures in TestParse. This has been going on for
quite a while, but I figure I at least point it our in case someone wants to take a look.

Here's what we see when it fails:

 4/11 Test  #4: TestParse ........................***Failed    3.97 sec
 <>********* Start testing of TestParse *********
 <>Config: Using QtTest library 5.9.0, Qt 5.9.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160406 (Red Hat 5.3.1-6))
 <>PASS   : TestParse::initTestCase()
 <>number of dives 4 
 <>number of dives 5 
 <>number of dives 6 
 <>number of dives 7 
 <>FAIL!  : TestParse::testParse() Compared values are not the same
 <>   Actual   (written.takeFirst().trimmed()): "<sample time='0:00 min' depth='2.68 m' temp='11.0 C' ndl='240:00 min' po2='0.9 bar' />"
 <>   Expected (readin.takeFirst().trimmed()) : "<sample time='0:00 min' depth='2.68 m' temp='11.0 C' ndl='240:00 min' />"
 <>   Loc: [/home/travis/build/Subsurface-divelog/subsurface/tests/testparse.cpp(153)]


It seems like we sometimes write the po2 value and sometimes we don't. Because usually when 
I re-run the test, it passes again.

I'd appreciate if someone could take a look.

/D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20170703/cd7e07fb/attachment.html>


More information about the subsurface mailing list