Changeset dc4fbb8 in rtems
- Timestamp:
- Oct 29, 2009, 5:45:49 AM (10 years ago)
- Branches:
- 4.10, 4.11, master
- Children:
- 3021db1
- Parents:
- f163c50
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
testsuites/psxtests/psxsysconf/init.c
rf163c50 rdc4fbb8 29 29 sc = sysconf( -1 ); 30 30 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 */ 32 37 puts( "sysconf -- bad configuration parameter - too large" ); 33 38 sc = sysconf( LONG_MAX ); 34 39 fatal_posix_service_status_errno( sc, EINVAL, "bad conf name" ); 35 40 #endif 41 36 42 sc = sysconf( _SC_CLK_TCK ); 37 43 printf( "sysconf - _SC_CLK_TCK=%ld\n", sc ); … … 59 65 rtems_test_exit(0); 60 66 61 sc = sysconf( 0x12345678);67 sc = sysconf( INT_MAX ); 62 68 printf( "sysconf - bad parameter = %ld errno=%s\n", sc, strerror(errno) ); 63 69 if ( (sc != -1) || (errno != EINVAL) )
Note: See TracChangeset
for help on using the changeset viewer.