ctrl_test: add two more current parsing bugs to prep for fix

Change-Id: Id11bc326be2f0bc2746a928354e416495a18baf7
This commit is contained in:
Neels Hofmeyr 2017-12-15 20:41:28 +01:00 committed by Harald Welte
parent f2c10f1082
commit 1b8b152e79
2 changed files with 34 additions and 0 deletions

View File

@ -154,6 +154,22 @@ static const struct one_test test_messages_list[] = {
"ERROR 1 Command not found",
},
{ "GET 1 var\ti\table",
{
.type = CTRL_TYPE_GET,
.id = "1",
.variable = "var\ti\table", /* current bug */
},
"ERROR 1 Command not found",
},
{ "GET 1 var\ri\rable",
{
.type = CTRL_TYPE_GET,
.id = "1",
.variable = "var\ri\rable", /* current bug */
},
"ERROR 1 Command not found",
},
{ "GET 1 variable value",
{
.type = CTRL_TYPE_GET,

View File

@ -34,6 +34,24 @@ reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'GET 1 var\ti\table'
parsing:
id = '1'
variable = 'var\ti\table'
value = '(null)'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'GET 1 var\ri\rable'
parsing:
id = '1'
variable = 'var\ri\rable'
value = '(null)'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'GET 1 variable value'
parsing:
id = '1'