aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/jenkins.sh
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-01-15 11:46:26 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2018-01-15 11:49:10 +0100
commit28ce315a3225188211c2ed52844716f88093035e (patch)
tree5b2305e5709a46267b50f3ec5f9f23ae5f5c7eef /contrib/jenkins.sh
parent10d76b6863cb2168cc5607fd70b191216acc851c (diff)
tests: TimevalTest: refactor and avoid double comparison
Before this patch, the experession assert(then_secondws==then.seconds()) was failing in x86 architecture (and passing when adding a fprintf to debug it). Avoid comparing the double values with == as that's usually a bad idea, since the processor can output slightly different results for the same operation depending on how it is optimized. Use timespec() instead to check the invariant. Take the chance to refactor some variables around to make the test easier to read. Change-Id: Id4324be8ece86d371b1acb46bbd97856dfed241d
Diffstat (limited to 'contrib/jenkins.sh')
0 files changed, 0 insertions, 0 deletions