diff --git a/tests/ctrl/ctrl_test.c b/tests/ctrl/ctrl_test.c index e25929c2c..b1d4f2375 100644 --- a/tests/ctrl/ctrl_test.c +++ b/tests/ctrl/ctrl_test.c @@ -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, diff --git a/tests/ctrl/ctrl_test.ok b/tests/ctrl/ctrl_test.ok index 210c5997b..4a3a1696f 100644 --- a/tests/ctrl/ctrl_test.ok +++ b/tests/ctrl/ctrl_test.ok @@ -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'