/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 2003-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 *
* *
* Phong Vo <kpv@research.att.com> *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#include "vctest.h"
int main()
{
ssize_t k, n;
int c;
/* generate random data */
c = 'a';
{
for(k = 0; k < 64 && d < endd; ++k, ++d)
*d = c + (random()%2);
if((c += 2) > 'h')
c = 'a';
}
terror("Cannot open Vchuffgroup handle");
terror("Cannot open Vchuffgroup handle to decode");
terror("Can't compress");
terror("Can't decompress n=%d", n);
for(k = 0; k < sizeof(data); ++k)
if(d[k] != data[k])
terror("Bad decompressed data");
terror("Cannot open Vchuffpart handle");
terror("Cannot open Vchuffpart handle to decode");
terror("Can't compress");
terror("Can't decompress n=%d", n);
for(k = 0; k < sizeof(data); ++k)
if(d[k] != data[k])
terror("Bad decompressed data");
exit(0);
}