svn commit: r231832 - stable/9/tools/regression/pipe
Eitan Adler
eadler at FreeBSD.org
Thu Feb 16 19:39:49 UTC 2012
Author: eadler
Date: Thu Feb 16 19:39:49 2012
New Revision: 231832
URL: http://svn.freebsd.org/changeset/base/231832
Log:
MFC r228274:
- Fix some uninitialized variables in pipe regression tests that result in failure.
PR: misc/161175
Approved by: cperciva
Modified:
stable/9/tools/regression/pipe/pipe-fstatbug.c
stable/9/tools/regression/pipe/pipe-reverse.c
stable/9/tools/regression/pipe/pipe-wraparound.c
Directory Properties:
stable/9/tools/regression/pipe/ (props changed)
Modified: stable/9/tools/regression/pipe/pipe-fstatbug.c
==============================================================================
--- stable/9/tools/regression/pipe/pipe-fstatbug.c Thu Feb 16 19:10:01 2012 (r231831)
+++ stable/9/tools/regression/pipe/pipe-fstatbug.c Thu Feb 16 19:39:49 2012 (r231832)
@@ -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/9/tools/regression/pipe/pipe-reverse.c
==============================================================================
--- stable/9/tools/regression/pipe/pipe-reverse.c Thu Feb 16 19:10:01 2012 (r231831)
+++ stable/9/tools/regression/pipe/pipe-reverse.c Thu Feb 16 19:39:49 2012 (r231832)
@@ -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/9/tools/regression/pipe/pipe-wraparound.c
==============================================================================
--- stable/9/tools/regression/pipe/pipe-wraparound.c Thu Feb 16 19:10:01 2012 (r231831)
+++ stable/9/tools/regression/pipe/pipe-wraparound.c Thu Feb 16 19:39:49 2012 (r231832)
@@ -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';
More information about the svn-src-stable-9
mailing list