tests: poll: fix code style

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-06-16 22:06:36 -04:00 committed by Kumar Gala
commit 183f045755
2 changed files with 4 additions and 4 deletions

View file

@ -23,6 +23,6 @@ void test_main(void *p1, void *p2, void *p3)
, ztest_unit_test(test_poll_no_wait)
, ztest_unit_test(test_poll_wait)
, ztest_unit_test(test_poll_eaddrinuse)
);
);
ztest_run_test_suite(test_poll_api);
}

View file

@ -160,7 +160,7 @@ void test_poll_wait(void)
zassert_equal(wait_events[0].tag, TAG_0, "");
zassert_equal(wait_events[1].state,
K_POLL_STATE_FIFO_DATA_AVAILABLE, "");
K_POLL_STATE_FIFO_DATA_AVAILABLE, "");
msg_ptr = k_fifo_get(&wait_fifo, 0);
zassert_not_null(msg_ptr, "");
zassert_equal(msg_ptr, &wait_msg, "");
@ -179,7 +179,7 @@ void test_poll_wait(void)
wait_signal.signaled = 0;
zassert_equal(k_poll(wait_events, ARRAY_SIZE(wait_events),
K_SECONDS(1)), -EAGAIN, "");
K_SECONDS(1)), -EAGAIN, "");
zassert_equal(wait_events[0].state, K_POLL_STATE_NOT_READY, "");
zassert_equal(wait_events[1].state, K_POLL_STATE_NOT_READY, "");
@ -265,7 +265,7 @@ void test_poll_wait(void)
zassert_equal(wait_events[0].tag, TAG_0, "");
zassert_equal(wait_events[1].state,
K_POLL_STATE_FIFO_DATA_AVAILABLE, "");
K_POLL_STATE_FIFO_DATA_AVAILABLE, "");
msg_ptr = k_fifo_get(&wait_fifo, K_NO_WAIT);
zassert_not_null(msg_ptr, "");
zassert_equal(wait_events[1].tag, TAG_1, "");