Changeset 7a595e8a in rtems for testsuites/psxtests


Ignore:
Timestamp:
Jul 5, 2010, 10:01:06 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
8eb24e7f
Parents:
95cf41e
Message:

2010-07-05 Joel Sherrill <joel.sherrill@…>

  • psxid01/init.c, psxid01/psxid01.scn: Actually match an entry in /etc/passwd and /etc/group.
Location:
testsuites/psxtests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    r95cf41e r7a595e8a  
     12010-07-05      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * psxid01/init.c, psxid01/psxid01.scn: Actually match an entry in
     4        /etc/passwd and /etc/group.
     5
    162010-07-05      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • testsuites/psxtests/psxid01/init.c

    r95cf41e r7a595e8a  
    107107  char ch;
    108108
    109   printf( "getlogin() -- %s\n", getlogin() );
     109  puts( "setuid(5)" );
     110  sc = setuid(5);
     111  rtems_test_assert( sc == 0 );
     112  printf( "getlogin() -- (%s)\n", getlogin() );
     113
     114  puts( "setuid(0)" );
     115  sc = setuid(0);
     116  rtems_test_assert( sc == 0 );
     117  printf( "getlogin() -- (%s)\n", getlogin() );
    110118
    111119  puts( "getlogin_r(NULL, LOGIN_NAME_MAX) -- EFAULT" );
     
    147155#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
    148156
    149 #define CONFIGURE_MAXIMUM_TASKS             1
     157#define CONFIGURE_MAXIMUM_TASKS                  1
     158/* so we can write /etc/passwd and /etc/group */
     159#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
    150160#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
    151161
  • testsuites/psxtests/psxid01/psxid01.scn

    r95cf41e r7a595e8a  
    2121getgroups - return 0 - OK
    2222
    23 getlogin() --
     23setuid(5)
     24getlogin() -- ()
     25setuid(0)
     26getlogin() -- (root)
    2427getlogin_r(NULL, LOGIN_NAME_MAX) -- EFAULT
    2528getlogin_r(buffer, 0) -- ERANGE
Note: See TracChangeset for help on using the changeset viewer.