Skip to content

Commit e564bab

Browse files
kartbenhenrikbrixandersen
authored andcommitted
tests: drivers: comparator: fix typos
Fixed a few dummy asserts Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent 4ae5c1e commit e564bab

File tree

1 file changed

+3
-3
lines changed
  • tests/drivers/comparator/shell/src

1 file changed

+3
-3
lines changed

tests/drivers/comparator/shell/src/test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ ZTEST(comparator_shell, test_await_trigger_set_callback_fail)
255255
shell_backend_dummy_clear_output(test_sh);
256256
comp_fake_comp_set_trigger_callback_fake.custom_fake = test_set_trigger_callback_stub_eio;
257257
ret = shell_execute_cmd(test_sh, "comp await_trigger " FAKE_COMP_NAME);
258-
zassert_ok(0);
258+
zassert_not_ok(ret);
259259
zassert_equal(comp_fake_comp_set_trigger_callback_fake.call_count, 1);
260260
zassert_equal(comp_fake_comp_set_trigger_callback_fake.return_val, 0);
261261
out = shell_backend_dummy_get_output(test_sh, &out_size);
@@ -271,7 +271,7 @@ ZTEST(comparator_shell, test_await_trigger_timeout)
271271
shell_backend_dummy_clear_output(test_sh);
272272
comp_fake_comp_set_trigger_callback_fake.custom_fake = test_set_trigger_callback_stub_0;
273273
ret = shell_execute_cmd(test_sh, "comp await_trigger " FAKE_COMP_NAME);
274-
zassert_ok(0);
274+
zassert_ok(ret);
275275
zassert_equal(comp_fake_comp_set_trigger_callback_fake.call_count, 2);
276276
zassert_equal(comp_fake_comp_set_trigger_callback_fake.return_val_history[0], 0);
277277
zassert_equal(comp_fake_comp_set_trigger_callback_fake.return_val_history[1], 0);
@@ -310,7 +310,7 @@ ZTEST(comparator_shell, test_await_trigger)
310310
comp_fake_comp_set_trigger_callback_fake.custom_fake_seq_len = ARRAY_SIZE(seq);
311311
test_schedule_trigger();
312312
ret = shell_execute_cmd(test_sh, "comp await_trigger " FAKE_COMP_NAME);
313-
zassert_ok(0);
313+
zassert_ok(ret);
314314
zassert_equal(comp_fake_comp_set_trigger_callback_fake.call_count, 2);
315315
zassert_equal(comp_fake_comp_set_trigger_callback_fake.arg0_history[0], test_dev);
316316
zassert_not_equal(comp_fake_comp_set_trigger_callback_fake.arg1_history[0], NULL);

0 commit comments

Comments
 (0)