forked from Imagelibrary/rtems
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)
|
||||
* Copyright (C) 2021, 2023 embedded brains GmbH (http://www.embedded-brains.de)
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@@ -71,6 +71,13 @@
|
||||
* - Assert that RTEMS_ID_NONE cannot be associated with an object because it
|
||||
* has an object index outside the range of valid object indices.
|
||||
*
|
||||
* - Validate the RTEMS_NO_TIMEOUT constant.
|
||||
*
|
||||
* - Assert that RTEMS_NO_TIMEOUT is a compile time constant which evaluates
|
||||
* to a value of zero.
|
||||
*
|
||||
* - Check that RTEMS_NO_TIMEOUT evaluates to a value of zero.
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
|
||||
@@ -92,12 +99,32 @@ static void RtemsTypeValType_Action_0( void )
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Validate the RTEMS_NO_TIMEOUT constant.
|
||||
*/
|
||||
static void RtemsTypeValType_Action_1( void )
|
||||
{
|
||||
/* Nothing to do */
|
||||
|
||||
/*
|
||||
* Assert that RTEMS_NO_TIMEOUT is a compile time constant which evaluates to
|
||||
* a value of zero.
|
||||
*/
|
||||
RTEMS_STATIC_ASSERT( RTEMS_NO_TIMEOUT == 0, NO_TIMEOUT );
|
||||
|
||||
/*
|
||||
* Check that RTEMS_NO_TIMEOUT evaluates to a value of zero.
|
||||
*/
|
||||
T_eq_u32( RTEMS_NO_TIMEOUT, 0 );
|
||||
}
|
||||
|
||||
/**
|
||||
* @fn void T_case_body_RtemsTypeValType( void )
|
||||
*/
|
||||
T_TEST_CASE( RtemsTypeValType )
|
||||
{
|
||||
RtemsTypeValType_Action_0();
|
||||
RtemsTypeValType_Action_1();
|
||||
}
|
||||
|
||||
/** @} */
|
||||
|
||||
Reference in New Issue
Block a user