From 91eecefd761001298771b7aeaa25a98bcf26574b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 14 Mar 2000 09:09:43 +0000 Subject: [PATCH] Correct one of the tests added in the last change. Really get the root passwd entry to check again ~root. --- posix/wordexp-test.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/posix/wordexp-test.c b/posix/wordexp-test.c index dba5109..69cfbb1 100644 --- a/posix/wordexp-test.c +++ b/posix/wordexp-test.c @@ -270,6 +270,17 @@ main (int argc, char *argv[]) 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; } /* "~" expands to value of $HOME when HOME is set */ @@ -303,17 +314,6 @@ main (int argc, char *argv[]) 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; } puts ("tests completed, now cleaning up"); -- 2.7.4