Pass the "user" test again
This commit is contained in:
parent
e3e294bffb
commit
639db55396
|
@ -27,11 +27,13 @@ int main(void)
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
struct passwd pw;
|
struct passwd pw;
|
||||||
String * tooltip;
|
String * tooltip;
|
||||||
String const * expected = "Full name: Charlie Root\n"
|
String const * expected = "Username: root\n"
|
||||||
|
"Full name: Charlie Root\n"
|
||||||
"Office location: IT Department\n"
|
"Office location: IT Department\n"
|
||||||
"Work phone: +1-555-1234\n"
|
"Work phone: +1-555-1234\n"
|
||||||
"Home phone: +1-555-1337";
|
"Home phone: +1-555-1337";
|
||||||
|
|
||||||
|
pw.pw_name = "root";
|
||||||
pw.pw_gecos = "Charlie Root,IT Department,+1-555-1234,+1-555-1337,,,";
|
pw.pw_gecos = "Charlie Root,IT Department,+1-555-1234,+1-555-1337,,,";
|
||||||
if((tooltip = _init_tooltip(&pw)) == NULL)
|
if((tooltip = _init_tooltip(&pw)) == NULL)
|
||||||
return 2;
|
return 2;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user