Project

General

Profile

Feature #1809

Updated by neels over 7 years ago

The 'timer' test in libosmocore is based on real time, 
 meaning that it occasionally fails just because of server load. 
 This causes gerrit patches to be rejected and requires manual retriggering. 

 It would be nice to wrap the gettimeofday calls in some shim that could 
 be redirected to an artificial timing source for the unit test(s), so that 
 no real time is involved and the test works regardless of load. 

 e.g. https://jenkins.osmocom.org/jenkins/job/libosmocore-gerrit/label=FreeBSD_amd64/153/console 

 https://jenkins.osmocom.org/jenkins/job/libosmocore-gerrit/154/ 
 tested the same and succeeded. 

 Another improvement would be that the test would take less time to complete, 
 not having to wait for real time to pass.

Back

Add picture from clipboard (Maximum size: 48.8 MB)