diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ussd/ussd_test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ussd/ussd_test.c b/tests/ussd/ussd_test.c index 6680e63c..bddbbcb7 100644 --- a/tests/ussd/ussd_test.c +++ b/tests/ussd/ussd_test.c @@ -66,9 +66,14 @@ static int parse_mangle_ussd(const uint8_t *_data, int len) int main(int argc, char **argv) { + struct ussd_request req; const int size = sizeof(ussd_request); int i; + gsm0480_decode_ussd_request((struct gsm48_hdr *) ussd_request, size, &req); + printf("Tested if it still works. Text was: %s\n", req.text); + + printf("Testing parsing a USSD request and truncated versions\n"); for (i = size; i > sizeof(struct gsm48_hdr); --i) { |