source: rtems/testsuites/psxtests/psxpasswd02/psxpasswd02.scn

Last change on this file was d9c60fdd, checked in by Joel Sherrill <joel.sherrill@…>, on 08/10/10 at 14:50:14

2010-08-10 Bharath Suri <bharath.s.jois@…>

PR 1598/testing

  • psxpasswd02/init.c, psxpasswd02/psxpasswd02.scn: New test case added to improve coverage of getpwent.c.
  • Property mode set to 100644
File size: 805 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 - getpwnam("root") -- expected EINVAL
13Init - getpwnam("root") -- expected EINVAL
14Init - getpwnam("root") -- expected EINVAL
15Init - getgrent() -- OK
16  group name: admin
17  group  password:
18  group  ID: 1
19Init - endpwent() -- OK
20Init - endpwent() -- OK
21Init - endgrent() -- OK
22Init - endgrent() -- OK
23Removing /etc/passwd
24Removing /etc/group
25Init - getpwnam("root") -- expected EINVAL
26Init - getgrnam("root") -- expected EINVAL
27*** END OF PASSWORD/GROUP TEST - 02 ***
Note: See TracBrowser for help on using the repository browser.