svn commit: r215440 - stable/7/tools/regression/lib/libc/gen

Jilles Tjoelker jilles at FreeBSD.org
Wed Nov 17 20:21:11 UTC 2010


Author: jilles
Date: Wed Nov 17 20:21:10 2010
New Revision: 215440
URL: http://svn.freebsd.org/changeset/base/215440

Log:
  MFC r174692: Fix wordexp() testsuite.
  
  Original commit by das.

Modified:
  stable/7/tools/regression/lib/libc/gen/test-wordexp.c
Directory Properties:
  stable/7/tools/regression/lib/libc/   (props changed)

Modified: stable/7/tools/regression/lib/libc/gen/test-wordexp.c
==============================================================================
--- stable/7/tools/regression/lib/libc/gen/test-wordexp.c	Wed Nov 17 19:54:01 2010	(r215439)
+++ stable/7/tools/regression/lib/libc/gen/test-wordexp.c	Wed Nov 17 20:21:10 2010	(r215440)
@@ -45,7 +45,7 @@ main(int argc, char *argv[])
 	int r;
 
 	/* Test that the macros are there. */
-	(void)(WRDE_APPEND + WRDE_DOOFS + WRDE_NOCMD + WRDE_REUSE +
+	(void)(WRDE_APPEND + WRDE_DOOFFS + WRDE_NOCMD + WRDE_REUSE +
 	    WRDE_SHOWERR + WRDE_UNDEF);
 	(void)(WRDE_BADCHAR + WRDE_BADVAL + WRDE_CMDSUB + WRDE_NOSPACE +
 	    WRDE_SYNTAX);
@@ -59,9 +59,9 @@ main(int argc, char *argv[])
 	assert(we.we_wordv[2] == NULL);
 	wordfree(&we);
 
-	/* WRDE_DOOFS */
+	/* WRDE_DOOFFS */
 	we.we_offs = 3;
-	r = wordexp("hello world", &we, WRDE_DOOFS);
+	r = wordexp("hello world", &we, WRDE_DOOFFS);
 	assert(r == 0);
 	assert(we.we_wordc == 2);
 	assert(we.we_wordv[0] == NULL);
@@ -95,13 +95,13 @@ main(int argc, char *argv[])
 	assert(we.we_wordv[4] == NULL);
 	wordfree(&we);
 
-	/* WRDE_DOOFS + WRDE_APPEND */
+	/* WRDE_DOOFFS + WRDE_APPEND */
 	we.we_offs = 2;
-	r = wordexp("this is", &we, WRDE_DOOFS);
+	r = wordexp("this is", &we, WRDE_DOOFFS);
 	assert(r == 0);
-	r = wordexp("a test", &we, WRDE_APPEND|WRDE_DOOFS);
+	r = wordexp("a test", &we, WRDE_APPEND|WRDE_DOOFFS);
 	assert(r == 0);
-	r = wordexp("of wordexp", &we, WRDE_APPEND|WRDE_DOOFS);
+	r = wordexp("of wordexp", &we, WRDE_APPEND|WRDE_DOOFFS);
 	assert(r == 0);
 	assert(we.we_wordc == 6);
 	assert(we.we_wordv[0] == NULL);


More information about the svn-src-all mailing list