From: Ulrich Drepper Date: Tue, 14 Mar 2000 09:09:43 +0000 (+0000) Subject: Correct one of the tests added in the last change. Really get the root passwd entry... X-Git-Tag: cvs/glibc_2-1-91~898 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=91eecefd761001298771b7aeaa25a98bcf26574b;p=glibc.git Correct one of the tests added in the last change. Really get the root passwd entry to check again ~root. --- diff --git a/posix/wordexp-test.c b/posix/wordexp-test.c index dba51093da..69cfbb1d0d 100644 --- a/posix/wordexp-test.c +++ b/posix/wordexp-test.c @@ -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; } @@ -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; }