/* * Verify creation of semaphores with unlimited attribute works. * * COPYRIGHT (c) 1989-2011. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.org/license/LICENSE. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include const char rtems_test_name[] = "SP 48"; rtems_task Init(rtems_task_argument ignored); #define SEMA_COUNT 5000 rtems_id Semaphores[SEMA_COUNT]; rtems_task Init(rtems_task_argument ignored) { rtems_status_code sc; int i; int created; TEST_BEGIN(); printf( "Largest C program heap block available: %zu\n", malloc_free_space() ); for (i=0 ; i