Changeset 8bc15aba in rtems


Ignore:
Timestamp:
03/09/23 15:34:56 (7 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
72465f86
Parents:
c821b92
git-author:
Sebastian Huber <sebastian.huber@…> (03/09/23 15:34:56)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/19/23 06:08:43)
Message:

validation: Validate RTEMS_NO_TIMEOUT

Update #3716.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/validation/tc-type.c

    rc821b92 r8bc15aba  
    88
    99/*
    10  * Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)
     10 * Copyright (C) 2021, 2023 embedded brains GmbH (http://www.embedded-brains.de)
    1111 *
    1212 * Redistribution and use in source and binary forms, with or without
     
    7272 *     has an object index outside the range of valid object indices.
    7373 *
     74 * - Validate the RTEMS_NO_TIMEOUT constant.
     75 *
     76 *   - Assert that RTEMS_NO_TIMEOUT is a compile time constant which evaluates
     77 *     to a value of zero.
     78 *
     79 *   - Check that RTEMS_NO_TIMEOUT evaluates to a value of zero.
     80 *
    7481 * @{
    7582 */
     
    94101
    95102/**
     103 * @brief Validate the RTEMS_NO_TIMEOUT constant.
     104 */
     105static void RtemsTypeValType_Action_1( void )
     106{
     107  /* Nothing to do */
     108
     109  /*
     110   * Assert that RTEMS_NO_TIMEOUT is a compile time constant which evaluates to
     111   * a value of zero.
     112   */
     113  RTEMS_STATIC_ASSERT( RTEMS_NO_TIMEOUT == 0, NO_TIMEOUT );
     114
     115  /*
     116   * Check that RTEMS_NO_TIMEOUT evaluates to a value of zero.
     117   */
     118  T_eq_u32( RTEMS_NO_TIMEOUT, 0 );
     119}
     120
     121/**
    96122 * @fn void T_case_body_RtemsTypeValType( void )
    97123 */
     
    99125{
    100126  RtemsTypeValType_Action_0();
     127  RtemsTypeValType_Action_1();
    101128}
    102129
Note: See TracChangeset for help on using the changeset viewer.