mirror of https://gerrit.osmocom.org/libosmocore
ctrl_test: add two more current parsing bugs to prep for fix
Change-Id: Id11bc326be2f0bc2746a928354e416495a18baf7
This commit is contained in:
parent
f2c10f1082
commit
1b8b152e79
|
@ -154,6 +154,22 @@ static const struct one_test test_messages_list[] = {
|
||||||
"ERROR 1 Command not found",
|
"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",
|
{ "GET 1 variable value",
|
||||||
{
|
{
|
||||||
.type = CTRL_TYPE_GET,
|
.type = CTRL_TYPE_GET,
|
||||||
|
|
|
@ -34,6 +34,24 @@ reply = '(null)'
|
||||||
handling:
|
handling:
|
||||||
replied: 'ERROR 1 Command not found'
|
replied: 'ERROR 1 Command not found'
|
||||||
ok
|
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'
|
test: 'GET 1 variable value'
|
||||||
parsing:
|
parsing:
|
||||||
id = '1'
|
id = '1'
|
||||||
|
|
Loading…
Reference in New Issue