/***********************************************************************
* *
* 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 "vmtest.h"
tmain()
{
int i;
terror("Open failed");
for(i = 0; i < 10; ++i)
terror("vmalloc failed");
for(i = 0; i < 10; ++i)
terror("vmfree failed");
for(i = 0; i < 10; ++i)
terror("vmalloc failed");
#ifdef DEBUG
for(i = 0; i < 10; ++i)
#endif
mem = 0;
terror("Bad return value from posix_memalign()");
if(mem)
terror("Bad memory");
terror("Bad return value from posix_memalign()");
if(mem)
terror("Bad memory");
terror("posix_memalign() failed");
if(!mem)
terror("Bad memory");
texit(0);
}