From 731d7a904db900b7dc36ed9f5f3771653e67f41b Mon Sep 17 00:00:00 2001 From: Clément Bénier Date: Tue, 9 Oct 2018 11:52:39 +0200 Subject: set_channel: no next channel when it doesn't exist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit in set_channel, when channel does not exist, next_channel has to be set to NULL Change-Id: I512691126200b2a1cc5041b1d2855087b8da1895 Signed-off-by: Clément Bénier --- test/afb-test/tests/iiodevices_BasicAPITest-devices.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/afb-test/tests') diff --git a/test/afb-test/tests/iiodevices_BasicAPITest-devices.lua b/test/afb-test/tests/iiodevices_BasicAPITest-devices.lua index e46428a..f2e9cc4 100644 --- a/test/afb-test/tests/iiodevices_BasicAPITest-devices.lua +++ b/test/afb-test/tests/iiodevices_BasicAPITest-devices.lua @@ -21,10 +21,11 @@ local testPrefix ="iiodevices_BasicAPITest_without_devices_" -- This tests the 'subscribe' verb of the iiodevices API without any devices -_AFT.testVerbStatusError(testPrefix.."subscribe-acceleration","iiodevices","subscribe", {event = "acceleration", args = "xy"}) _AFT.testVerbStatusError(testPrefix.."subscribe-compass","iiodevices","subscribe", {event = "compass", args = "xy"}) _AFT.testVerbStatusError(testPrefix.."subscribe-gyroscope","iiodevices","subscribe", {event = "gyroscope", args = "xy"}) +_AFT.testVerbStatusError(testPrefix.."subscribe-acceleration","iiodevices","subscribe", {event = "acceleration", args = "abc"}) +_AFT.testVerbStatusError(testPrefix.."subscribe-acceleration-with-wrong-argument","iiodevices","subscribe", {event = "acceleration", args = "abc"}) _AFT.testVerbStatusError(testPrefix.."subscribe-acceleration-with-wrong-argument","iiodevices","subscribe", {event = "acceleration", aaaaaaaaaaaaaaaaaaaaa = "xy"}) _AFT.testVerbStatusError(testPrefix.."subscribe-compass-with-wrong-argument","iiodevices","subscribe", {event = "compass", bbbbbbbbbbbbbbbb = "xy"}) _AFT.testVerbStatusError(testPrefix.."subscribe-gyroscope-with-wrong-argument","iiodevices","subscribe", {event = "gyroscope", cccccccccccccccccc = "xy"}) -- cgit 1.2.3-korg