From 6882b80d9630293f7db7606b1d73194d0571e6a4 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 5 Apr 2018 02:14:12 +0200 Subject: 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 --- tests/ctrl/ctrl_test.ok | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/ctrl/ctrl_test.ok') 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 -- cgit v1.2.3