PERFORCE change 100354 for review
Michael Bushkov
bushman at FreeBSD.org
Fri Jun 30 17:51:15 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=100354
Change 100354 by bushman at bushman_nss_ldap_cached on 2006/06/30 17:24:07
Regression test for services and testutil.h (which will be required for all nsswitch regressions) were added. A bug in test-wordexp.c (in libc/gen regression) fixed.
Affected files ...
.. //depot/projects/soc2006/nss_ldap_cached/src/tools/regression/lib/libc/gen/test-wordexp.c#2 edit
.. //depot/projects/soc2006/nss_ldap_cached/src/tools/regression/lib/libc/nss/Makefile#1 add
.. //depot/projects/soc2006/nss_ldap_cached/src/tools/regression/lib/libc/nss/test-getgr.c#1 add
.. //depot/projects/soc2006/nss_ldap_cached/src/tools/regression/lib/libc/nss/test-getpw.c#1 add
.. //depot/projects/soc2006/nss_ldap_cached/src/tools/regression/lib/libc/nss/test-getserv.c#1 add
.. //depot/projects/soc2006/nss_ldap_cached/src/tools/regression/lib/libc/nss/test-getserv.t#1 add
.. //depot/projects/soc2006/nss_ldap_cached/src/tools/regression/lib/libc/nss/testutil.h#1 add
Differences ...
==== //depot/projects/soc2006/nss_ldap_cached/src/tools/regression/lib/libc/gen/test-wordexp.c#2 (text+ko) ====
@@ -45,7 +45,7 @@
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 @@
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 @@
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 p4-projects
mailing list