diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-04-05 02:14:12 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-04-05 03:10:34 +0200 |
commit | 6882b80d9630293f7db7606b1d73194d0571e6a4 (patch) | |
tree | c415ffb5679c4b6c4559f8c3e65029e5b208d55a /tests/ctrl/ctrl_test.ok | |
parent | 2ecfb30d7f00c8307600450e184dfd26990e8bc6 (diff) |
ctrl: test deferred cmd, show current failure
Handling a deferred command currently deallocates the struct ctrl_cmd upon
exiting the initial command handling, while it should actually stay around for
the asynchronous/deferred handling of the ctrl command.
Show the current bug by means of a ctrl test. The test will be adjusted to
expect the correct result when the bug is fixed in a subsequent commit
(I24232be7dcf7be79f4def91ddc8b8f8005b56318).
Change-Id: Ibbc847fc583bdd8e5e53a008258805e634ea12b4
Diffstat (limited to 'tests/ctrl/ctrl_test.ok')
-rw-r--r-- | tests/ctrl/ctrl_test.ok | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ctrl/ctrl_test.ok b/tests/ctrl/ctrl_test.ok index 087ebbc2..6a902be0 100644 --- a/tests/ctrl/ctrl_test.ok +++ b/tests/ctrl/ctrl_test.ok @@ -172,3 +172,9 @@ value = '(null)' reply = 'OK' handling: ok + +test_deferred_cmd +get_test_defer called +ctrl_handle_msg() returned 0 +deferred command apparently deallocated too soon +success |