Skip to content

Commit

Permalink
Correct one of the tests added in the last change. Really get the roo…
Browse files Browse the repository at this point in the history
…t passwd entry to check again ~root.
  • Loading branch information
Ulrich Drepper committed Mar 14, 2000
1 parent d1d62b5 commit 91eecef
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions posix/wordexp-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,17 @@ main (int argc, char *argv[])
ts.wordv[0] = pw->pw_dir;
ts.ifs = IFS;

if (testit (&ts))
++fail;

ts.retval = 0;
ts.env = pw->pw_dir;
ts.words = "${var#~root}x";
ts.flags = 0;
ts.wordc = 1;
ts.wordv[0] = "x";
ts.ifs = IFS;

if (testit (&ts))
++fail;
}
Expand Down Expand Up @@ -301,17 +312,6 @@ main (int argc, char *argv[])
ts.wordv[0] = pw->pw_dir;
ts.ifs = IFS;

if (testit (&ts))
++fail;

ts.retval = 0;
ts.env = pw->pw_dir;
ts.words = "${var#~root}x";
ts.flags = 0;
ts.wordc = 1;
ts.wordv[0] = "x";
ts.ifs = IFS;

if (testit (&ts))
++fail;
}
Expand Down

0 comments on commit 91eecef

Please sign in to comment.