@@ -255,7 +255,7 @@ ZTEST(comparator_shell, test_await_trigger_set_callback_fail)
255
255
shell_backend_dummy_clear_output (test_sh );
256
256
comp_fake_comp_set_trigger_callback_fake .custom_fake = test_set_trigger_callback_stub_eio ;
257
257
ret = shell_execute_cmd (test_sh , "comp await_trigger " FAKE_COMP_NAME );
258
- zassert_ok ( 0 );
258
+ zassert_not_ok ( ret );
259
259
zassert_equal (comp_fake_comp_set_trigger_callback_fake .call_count , 1 );
260
260
zassert_equal (comp_fake_comp_set_trigger_callback_fake .return_val , 0 );
261
261
out = shell_backend_dummy_get_output (test_sh , & out_size );
@@ -271,7 +271,7 @@ ZTEST(comparator_shell, test_await_trigger_timeout)
271
271
shell_backend_dummy_clear_output (test_sh );
272
272
comp_fake_comp_set_trigger_callback_fake .custom_fake = test_set_trigger_callback_stub_0 ;
273
273
ret = shell_execute_cmd (test_sh , "comp await_trigger " FAKE_COMP_NAME );
274
- zassert_ok (0 );
274
+ zassert_ok (ret );
275
275
zassert_equal (comp_fake_comp_set_trigger_callback_fake .call_count , 2 );
276
276
zassert_equal (comp_fake_comp_set_trigger_callback_fake .return_val_history [0 ], 0 );
277
277
zassert_equal (comp_fake_comp_set_trigger_callback_fake .return_val_history [1 ], 0 );
@@ -310,7 +310,7 @@ ZTEST(comparator_shell, test_await_trigger)
310
310
comp_fake_comp_set_trigger_callback_fake .custom_fake_seq_len = ARRAY_SIZE (seq );
311
311
test_schedule_trigger ();
312
312
ret = shell_execute_cmd (test_sh , "comp await_trigger " FAKE_COMP_NAME );
313
- zassert_ok (0 );
313
+ zassert_ok (ret );
314
314
zassert_equal (comp_fake_comp_set_trigger_callback_fake .call_count , 2 );
315
315
zassert_equal (comp_fake_comp_set_trigger_callback_fake .arg0_history [0 ], test_dev );
316
316
zassert_not_equal (comp_fake_comp_set_trigger_callback_fake .arg1_history [0 ], NULL );
0 commit comments