/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1999-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#include "sftest.h"
/* see if multiple writers do create a consistent set of records. */
static long vrandom()
{
}
tmain()
{
int i, r, done;
/* create random record sizes */
for(i = 0; i < N_WRITER; ++i)
for(r = 0; r < N_RECORD; ++r)
/* records for different processes */
for(i = 0; i < N_WRITER; ++i)
for(r = 0; r < 128; ++r)
record[i][r] = '0'+i;
/* create file */
/* create records */
for(i = 0; i < N_WRITER; ++i)
count[i] = 0;
}
terror("sfreserve fails in process %d", i);
s[r-1] = '\n';
{ done += 1;
}
}
}
for(i = 0; i < N_WRITER; ++i)
count[i] = 0;
{ if((i = s[0] - '0') < 0 || i >= N_WRITER)
terror("Wrong record type");
if(s[r] != s[0])
terror("Record%d count=%d size=%d sfvalue=%d",
count[i] += 1;
}
for(i = 0; i < N_WRITER; ++i)
texit(0);
}