summaryrefslogtreecommitdiffstats
path: root/tests/gsm0808/gsm0808_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gsm0808/gsm0808_test.c')
-rw-r--r--tests/gsm0808/gsm0808_test.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/gsm0808/gsm0808_test.c b/tests/gsm0808/gsm0808_test.c
index a0ff6d52..8304052d 100644
--- a/tests/gsm0808/gsm0808_test.c
+++ b/tests/gsm0808/gsm0808_test.c
@@ -123,6 +123,18 @@ static void test_create_reset()
msgb_free(msg);
}
+static void test_create_reset_ack()
+{
+ static const uint8_t res[] = { 0x00, 0x01, 0x31 };
+ struct msgb *msg;
+
+ printf("Testing creating Reset Ack\n");
+ msg = gsm0808_create_reset_ack();
+ VERIFY(msg, res, ARRAY_SIZE(res));
+ msgb_free(msg);
+}
+
+
static void test_create_clear_command()
{
static const uint8_t res[] = { 0x20, 0x04, 0x01, 0x23 };
@@ -828,6 +840,7 @@ int main(int argc, char **argv)
test_create_layer3();
test_create_layer3_aoip();
test_create_reset();
+ test_create_reset_ack();
test_create_clear_command();
test_create_clear_complete();
test_create_cipher();