diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-03-26 23:39:44 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-03-27 00:24:28 +0200 |
commit | 5382e0fc1f5c30532b5b2b322601c9d4a8d4f982 (patch) | |
tree | 3028f5ceac43e70fe3cd0c4910f9df6c05656c64 /git-version-gen | |
parent | dd1700a397379e9383b9577fca09738b3251fc7c (diff) |
bitcomp test: fix: also verify bits after decoded data
Before this, the expected data had seemingly random bits set after the end of
the expected decoding result. Make the test expect these extra bits as zero,
matching with the buffer initialization to zero.
In result_matches(), compare the full length of bytes instead of masking the
bits after the end of the decoded data (which caused us to not catch the wrong
expectation until now).
This fixes the underlying issues found in
http://lists.osmocom.org/pipermail/osmocom-net-gprs/2017-March/000876.html
[osmo-pcu 0.2.896-0a8f] testsuite: 4 failed
from: Arnaud ZANETTI
on: Fri Mar 24 09:53:53 UTC 2017
Change-Id: I2501208e2f8b4f709efbcadbd1057c086472c9e6
Diffstat (limited to 'git-version-gen')
0 files changed, 0 insertions, 0 deletions