Date: Fri, 16 Mar 2012 03:16:11 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r233020 - stable/8/tools/regression/pipe Message-ID: <201203160316.q2G3GBZL096788@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Fri Mar 16 03:16:10 2012 New Revision: 233020 URL: http://svn.freebsd.org/changeset/base/233020 Log: MFC r228274: - Fix some uninitialized variables in pipe regression tests that result in failure. PR: misc/161175 Approved by: cperciva Modified: stable/8/tools/regression/pipe/pipe-fstatbug.c stable/8/tools/regression/pipe/pipe-reverse.c stable/8/tools/regression/pipe/pipe-wraparound.c Directory Properties: stable/8/tools/regression/pipe/ (props changed) Modified: stable/8/tools/regression/pipe/pipe-fstatbug.c ============================================================================== --- stable/8/tools/regression/pipe/pipe-fstatbug.c Thu Mar 15 23:53:24 2012 (r233019) +++ stable/8/tools/regression/pipe/pipe-fstatbug.c Fri Mar 16 03:16:10 2012 (r233020) @@ -41,7 +41,7 @@ int main (void) { char buffer[32768], buffer2[32768]; int desc[2]; -int error, successes; +int error, successes = 0; struct stat status; pid_t new_pid; Modified: stable/8/tools/regression/pipe/pipe-reverse.c ============================================================================== --- stable/8/tools/regression/pipe/pipe-reverse.c Thu Mar 15 23:53:24 2012 (r233019) +++ stable/8/tools/regression/pipe/pipe-reverse.c Fri Mar 16 03:16:10 2012 (r233020) @@ -44,6 +44,7 @@ struct stat status; pid_t new_pid; buggy = 0; +total = 0; error = pipe(desc); @@ -52,7 +53,7 @@ if (error) buffer[0] = 'A'; -for (i = 0; i < 65535; i++) { +for (i = 1; i < 65535; i++) { buffer[i] = buffer[i - 1] + 1; if (buffer[i] > 'Z') buffer[i] = 'A'; Modified: stable/8/tools/regression/pipe/pipe-wraparound.c ============================================================================== --- stable/8/tools/regression/pipe/pipe-wraparound.c Thu Mar 15 23:53:24 2012 (r233019) +++ stable/8/tools/regression/pipe/pipe-wraparound.c Fri Mar 16 03:16:10 2012 (r233020) @@ -44,6 +44,7 @@ struct stat status; pid_t new_pid; buggy = 0; +total = 0; error = pipe(desc); @@ -52,7 +53,7 @@ if (error) buffer[0] = 'A'; -for (i = 0; i < 32768; i++) { +for (i = 1; i < 32768; i++) { buffer[i] = buffer[i - 1] + 1; if (buffer[i] > 'Z') buffer[i] = 'A';
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203160316.q2G3GBZL096788>