diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-11-16 22:29:38 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2017-11-20 17:22:42 +0100 |
commit | 568f8e20175a21da4e4537a2f5a4f7fedec8c6d6 (patch) | |
tree | a3d05ee7cf035cd119ab09029ccf21ebbe90a82c /tests | |
parent | 10ee73a7b39b2867fde2a827b199f6264149c75c (diff) |
bssgp_fc_test: remove rounding to deciseconds
Ever since this test was changed to use osmo_gettimeofday_override, the times
it sees are exact every time and don't need rounding to pass the expected
output.
Change-Id: I4a9a5d31fc02eb55caf7ba9c141426d8115bb740
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gb/bssgp_fc_test.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/gb/bssgp_fc_test.c b/tests/gb/bssgp_fc_test.c index 27d8fcc1..47198726 100644 --- a/tests/gb/bssgp_fc_test.c +++ b/tests/gb/bssgp_fc_test.c @@ -29,19 +29,10 @@ int get_centisec_diff(void) return tv.tv_sec * 100 + tv.tv_usec/10000; } -/* round to deciseconds to make sure test output is always consistent */ -int round_decisec(int csec_in) -{ - int tmp = csec_in / 10; - - return tmp * 10; -} - static int fc_out_cb(struct bssgp_flow_control *fc, struct msgb *msg, uint32_t llc_pdu_len, void *priv) { unsigned int csecs = get_centisec_diff(); - csecs = round_decisec(csecs); printf("%u: FC OUT Nr %lu\n", csecs, (unsigned long) msg->cb[0]); msgb_free(msg); @@ -52,7 +43,6 @@ static int fc_in(struct bssgp_flow_control *fc, unsigned int pdu_len) { struct msgb *msg; unsigned int csecs = get_centisec_diff(); - csecs = round_decisec(csecs); msg = msgb_alloc(1, "fc test"); msg->cb[0] = in_ctr++; |