Every once in a while TestParse fails in the CI builds. But when I build the 
exact same SHA on my system, the test passes just fine.

If someone has some spare time and wants to look... the last build on Travis 
once again failed, so you can see the error right there:

4/11 Test  #4: TestParse ........................***Failed    1.47 sec
 <>********* Start testing of TestParse *********
 <>Config: Using QtTest library 5.8.0, Qt 5.8.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.6 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(160)]

So we seen to write an extra po2='0.6 bar' - but we don't appear to do that 
when I run it here. I haven't spent much time beyond that very basic analysis, 
though...

/D


_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to