summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-03-14 09:09:43 +0000
committerUlrich Drepper <drepper@redhat.com>2000-03-14 09:09:43 +0000
commit91eecefd761001298771b7aeaa25a98bcf26574b (patch)
tree6edaf825d9ce540565c1b4ee90ee17613d786063 /posix
parentd1d62b539d3332d2cd23fa9b56d999fa2bc5ebfc (diff)
downloadglibc-91eecefd761001298771b7aeaa25a98bcf26574b.tar.gz
glibc-91eecefd761001298771b7aeaa25a98bcf26574b.tar.xz
glibc-91eecefd761001298771b7aeaa25a98bcf26574b.zip
Correct one of the tests added in the last change. Really get the root passwd entry to check again ~root.
Diffstat (limited to 'posix')
-rw-r--r--posix/wordexp-test.c22
1 files changed, 11 insertions, 11 deletions
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
@@ -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");