From 568f8e20175a21da4e4537a2f5a4f7fedec8c6d6 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 16 Nov 2017 22:29:38 +0100 Subject: 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 --- tests/gb/bssgp_fc_test.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'tests/gb') 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++; -- cgit v1.2.3