diff options
author | Harald Welte <laforge@osmocom.org> | 2020-06-16 08:44:42 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-06-16 09:21:08 +0200 |
commit | a13fb750305cad14df5ecc98ee3006965b418cbc (patch) | |
tree | eec5a70afcd5d4fa73b35f1779da486f609c692c /tests/utils | |
parent | d1ceca9d48eb3d8b212f386a1ebb35d8fc612297 (diff) |
Revert "add osmo_mobile_identity API"
This reverts commit d1ceca9d48eb3d8b212f386a1ebb35d8fc612297, as it
introduces regressions in both osmo-msc and osmo-nitb which have been
causing failing builds for several days now.
Change-Id: I4bd958d0cd2ab4b0c4725e6d114f4404d725fcf7
Diffstat (limited to 'tests/utils')
-rw-r--r-- | tests/utils/utils_test.c | 7 | ||||
-rw-r--r-- | tests/utils/utils_test.ok | 14 |
2 files changed, 0 insertions, 21 deletions
diff --git a/tests/utils/utils_test.c b/tests/utils/utils_test.c index e15cf5f6..e87cb22f 100644 --- a/tests/utils/utils_test.c +++ b/tests/utils/utils_test.c @@ -487,7 +487,6 @@ static void bcd2str_test(void) { int i; uint8_t bcd[64]; - uint8_t bcd2[64]; int rc; printf("\nTesting bcd to string conversion\n"); @@ -512,12 +511,6 @@ static void bcd2str_test(void) printf(" ERROR: expected rc=%d\n", t->expect_rc); if (strcmp(str, t->expect_str)) printf(" ERROR: expected result %s\n", osmo_quote_str(t->expect_str, -1)); - - memset(bcd2, 0xff, sizeof(bcd2)); - rc = osmo_str2bcd(bcd2, sizeof(bcd2), str, t->start_nibble, -1, t->allow_hex); - printf("osmo_str2bcd(start_nibble=%d) -> rc=%d\n", t->start_nibble, rc); - if (rc > 0) - printf(" = %s\n", osmo_hexdump(bcd2, rc)); } printf("- zero output buffer\n"); diff --git a/tests/utils/utils_test.ok b/tests/utils/utils_test.ok index cbab72a9..baa708ee 100644 --- a/tests/utils/utils_test.ok +++ b/tests/utils/utils_test.ok @@ -181,41 +181,27 @@ Testing bcd to string conversion - BCD-input='1a 32 54 76 98 f0' nibbles=[1..11[ str_size=64 rc=10 -> "1234567890" -osmo_str2bcd(start_nibble=1) -> rc=6 - = 1f 32 54 76 98 f0 - BCD-input='1a 32 a4 cb 9d f0' nibbles=[1..11[ str_size=64 rc=-22 -> "1234ABCD90" -osmo_str2bcd(start_nibble=1) -> rc=-22 - BCD-input='1a 32 a4 cb 9d f0' nibbles=[1..11[ str_size=64 rc=10 -> "1234ABCD90" -osmo_str2bcd(start_nibble=1) -> rc=6 - = 1f 32 a4 cb 9d f0 - BCD-input='1a 32 54 76 98 f0' nibbles=[1..12[ str_size=64 rc=-22 -> "1234567890F" -osmo_str2bcd(start_nibble=1) -> rc=-22 - BCD-input='1a 32 54 76 98 f0' nibbles=[1..12[ str_size=64 rc=11 -> "1234567890F" -osmo_str2bcd(start_nibble=1) -> rc=6 - = 1f 32 54 76 98 f0 - BCD-input='1a 32 54 76 98 f0' nibbles=[0..12[ str_size=64 rc=12 -> "A1234567890F" -osmo_str2bcd(start_nibble=0) -> rc=6 - = 1a 32 54 76 98 f0 - BCD-input='1a 32 54 76 98 f0' nibbles=[1..12[ str_size=5 rc=11 -> "1234" -osmo_str2bcd(start_nibble=1) -> rc=3 - = 1f 32 f4 - BCD-input='' nibbles=[1..1[ str_size=64 rc=0 -> "" -osmo_str2bcd(start_nibble=1) -> rc=1 - = ff - zero output buffer bcd2str(NULL, ...) -> -12 bcd2str(dst, 0, ...) -> -12 |