zephyr/tests/kernel/queue/src/test_queue_fail.c
Anas Nashif 39f396a8ad doc: tests: remove obsolete and bogus test groups
Remove unstructured and unused doxygen groups for tests. We will now add
doxygen comments per test function and follow a more structured
grouping.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2018-05-18 01:48:31 +03:00

22 lines
384 B
C

/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "test_queue.h"
#define TIMEOUT 100
/*test cases*/
void test_queue_get_fail(void)
{
struct k_queue queue;
k_queue_init(&queue);
/**TESTPOINT: queue get returns NULL*/
zassert_is_null(k_queue_get(&queue, K_NO_WAIT), NULL);
zassert_is_null(k_queue_get(&queue, TIMEOUT), NULL);
}