blob: bf6f056e22c54b1fdc0227df9bc22a4e576bb637 [file] [log] [blame]
/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "test_fifo.h"
#define TIMEOUT 100
/**
* @addtogroup kernel_fifo
* @{
* @brief Verify zephyr fifo_get when no data
* - API coverage
* -# k_fifo_init
* -# k_fifo_get
*/
void test_fifo_get_fail(void *p1, void *p2, void *p3)
{
struct k_fifo fifo;
k_fifo_init(&fifo);
/**TESTPOINT: fifo get returns NULL*/
zassert_is_null(k_fifo_get(&fifo, K_NO_WAIT), NULL);
zassert_is_null(k_fifo_get(&fifo, TIMEOUT), NULL);
}
/**
* @}
*/