From ee9dc0d40d4ff64d5576310e22dd95c880011c67 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Wed, 4 Jun 2014 19:41:07 +0200 Subject: [PATCH] unit/test-hfp: Add test for parsing empty string Test if parser is properly handling single '\r'. --- unit/test-hfp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unit/test-hfp.c b/unit/test-hfp.c index 20aa0b505..a8801b0dc 100644 --- a/unit/test-hfp.c +++ b/unit/test-hfp.c @@ -465,6 +465,9 @@ int main(int argc, char *argv[]) '\r'), type_pdu(HFP_GW_CMD_TYPE_SET, 0), data_end()); + define_test("/hfp/test_empty", test_fragmented, NULL, + raw_pdu('\r'), + data_end()); return g_test_run(); } -- 2.47.3