blob: 482e26beac9e734d09bf47edf876f724b6e64e63 [file] [log] [blame]
/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @addtogroup t_lifo_api
* @{
* @defgroup t_lifo_get_fail test_lifo_get_fail
* @brief TestPurpose: verify zephyr lifo_get when no data
* - API coverage
* -# k_lifo_init
* -# k_lifo_get [TIMEOUT|K_NO_WAIT]
* @}
*/
#include "test_lifo.h"
#define TIMEOUT 100
/*test cases*/
void test_lifo_get_fail(void *p1, void *p2, void *p3)
{
struct k_lifo lifo;
k_lifo_init(&lifo);
/**TESTPOINT: lifo get returns NULL*/
assert_is_null(k_lifo_get(&lifo, K_NO_WAIT), NULL);
assert_is_null(k_lifo_get(&lifo, TIMEOUT), NULL);
}