diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-12-15 20:41:28 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-12-18 23:05:50 +0000 |
commit | 1b8b152e791df579035f7b7c8dd621938f7de3c0 (patch) | |
tree | 37bf27eea83fa0dd09c0827bc15308023d39bd5b /tests/ctrl | |
parent | f2c10f108202c350a3c16f49156b11b0cd0dfa96 (diff) |
ctrl_test: add two more current parsing bugs to prep for fix
Change-Id: Id11bc326be2f0bc2746a928354e416495a18baf7
Diffstat (limited to 'tests/ctrl')
-rw-r--r-- | tests/ctrl/ctrl_test.c | 16 | ||||
-rw-r--r-- | tests/ctrl/ctrl_test.ok | 18 |
2 files changed, 34 insertions, 0 deletions
diff --git a/tests/ctrl/ctrl_test.c b/tests/ctrl/ctrl_test.c index e25929c2..b1d4f237 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 210c5997..4a3a1696 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' |