Changeset dc4fbb8 in rtems


Ignore:
Timestamp:
Oct 29, 2009, 5:45:49 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
3021db1
Parents:
f163c50
Message:

Comment out sysconf(LONG_MAX) check (not useful).
Change sysconf(0x12345678) check into sysconf(INT_MAX) for better
16bit compliance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psxsysconf/init.c

    rf163c50 rdc4fbb8  
    2929  sc = sysconf( -1 );
    3030  fatal_posix_service_status_errno( sc, EINVAL, "bad conf name" );
    31  
     31
     32#if UNUSED 
     33/* FIXME: This test doesn't make sense.
     34 * On targets with sizeof(int) < sizeof(long), compilation will fail,
     35 * On targets with sizeof(int) == sizeof(long) the call is valid.
     36 */
    3237  puts( "sysconf -- bad configuration parameter - too large" );
    3338  sc = sysconf( LONG_MAX );
    3439  fatal_posix_service_status_errno( sc, EINVAL, "bad conf name" );
    35  
     40#endif
     41
    3642  sc = sysconf( _SC_CLK_TCK );
    3743  printf( "sysconf - _SC_CLK_TCK=%ld\n", sc );
     
    5965   rtems_test_exit(0);
    6066
    61   sc = sysconf( 0x12345678 );
     67  sc = sysconf( INT_MAX );
    6268  printf( "sysconf - bad parameter = %ld errno=%s\n", sc, strerror(errno) );
    6369  if ( (sc != -1) || (errno != EINVAL) )
Note: See TracChangeset for help on using the changeset viewer.