diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-05-26 00:49:57 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-05-28 06:50:41 +0700 |
commit | 719408745786159cb0471477e015e155c14935b6 (patch) | |
tree | 1d7fdd52e98b3565f4488b273f52adbdf5238a14 /tests/gsm0408/gsm0408_test.ok | |
parent | 2cd1dda631713a188f285775b19667e252e3a681 (diff) |
gsm48_decode_bcd_number2(): fix: return -ENOSPC on truncation
The documentation of gsm48_decode_bcd_number2() clearly states that
the output truncation is a erroneous case, so it should actually
return negative in such cases. Let's return -ENOSPC.
Change-Id: I75680f232001ba419a587fed4c24f32c70c3ad2b
Diffstat (limited to 'tests/gsm0408/gsm0408_test.ok')
-rw-r--r-- | tests/gsm0408/gsm0408_test.ok | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gsm0408/gsm0408_test.ok b/tests/gsm0408/gsm0408_test.ok index 3938e870..b0804116 100644 --- a/tests/gsm0408/gsm0408_test.ok +++ b/tests/gsm0408/gsm0408_test.ok @@ -173,8 +173,8 @@ BSD number encoding / decoding test - Expected: (rc=-5) '' - Actual: (rc=-5) '' - Decoding HEX (buffer limit=16) '0a21436587092143658709'... - - Expected: (rc=0) '123456789012345' - - Actual: (rc=0) '123456789012345' + - Expected: (rc=-28) '123456789012345' + - Actual: (rc=-28) '123456789012345' - Running test: LV incorrect length - Decoding HEX (buffer limit=0) '05214365'... - Expected: (rc=-5) '(none)' |