source: rtems/testsuites/psxtests/psxpasswd02/psxpasswd02.scn @ 1fe4042

4.11
Last change on this file since 1fe4042 was 1fe4042, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 1, 2010 at 5:26:37 PM

2010-07-01 Bharath Suri <bharath.s.jois@…>

PR 1598/testing

  • Makefile.am, configure.ac, psxpasswd01/init.c, psxpasswd01/psxpasswd01.doc, psxpasswd01/psxpasswd01.scn: Add testing for POSIX user database (e.g. /etc/group and /etc/passwd) access routines which are implemented in libcsupport/src/getpwent.c.
  • psxpasswd02/.cvsignore, psxpasswd02/Makefile.am, psxpasswd02/init.c, psxpasswd02/psxpasswd02.doc, psxpasswd02/psxpasswd02.scn: New files.
  • Property mode set to 100644
File size: 676 bytes
Line 
1*** PASSWORD/GROUP TEST - 02 ***
2Init - Creating /etc
3Init - Creating /etc/passwd
4Init - Creating /etc/group
5Init - setpwent() -- OK
6Init - setpwent() -- OK
7Init - setgrent() -- OK
8Init - setgrent() -- OK
9Init - getpwnam("root") -- expected EINVAL
10Init - getpwnam("root") -- expected EINVAL
11Init - getpwnam("root") -- expected EINVAL
12Init - getgrent() -- OK
13  group name: admin
14  group  password:
15  group  ID: 1
16Init - endpwent() -- OK
17Init - endpwent() -- OK
18Init - endgrent() -- OK
19Init - endgrent() -- OK
20Removing /etc/passwd
21Removing /etc/group
22Init - getpwnam("root") -- expected EINVAL
23Init - getgrnam("root") -- expected EINVAL
24*** END OF PASSWORD/GROUP TEST - 02 ***
Note: See TracBrowser for help on using the repository browser.