aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-14 18:18:10 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-14 18:18:10 +0100
commitecc75459f29ddbf5d26826f6866eca1184a4fa7a (patch)
tree19092c771fc812e9e4cc39160bded61bcda93347 /tests
parent9566027b0728684b3a6fbb76dacb03bda4a37bc7 (diff)
m2ua: Move the test into a new function.
Diffstat (limited to 'tests')
-rw-r--r--tests/m2ua/m2ua_test.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/m2ua/m2ua_test.c b/tests/m2ua/m2ua_test.c
index 848bd7a..d134a59 100644
--- a/tests/m2ua/m2ua_test.c
+++ b/tests/m2ua/m2ua_test.c
@@ -35,7 +35,7 @@ static uint8_t asp_up[] = {
0x00, 0x11, 0x00, 0x08, 0xac, 0x10, 0x01, 0x51,
};
-int main(int argc, char **argv)
+static void test_asp_up()
{
struct m2ua_msg_part *part;
struct m2ua_msg *m2u = m2ua_from_msg(ARRAY_SIZE(asp_up), asp_up);
@@ -63,5 +63,10 @@ int main(int argc, char **argv)
m2ua_msg_free(m2u);
msgb_free(msg);
+}
+
+int main(int argc, char **argv)
+{
+ test_asp_up();
return 0;
}