tstVMM-HwAccm.cpp revision 52f16f53a955f5b24bc2132c418a5fffb700f089
/* $Id$ */
/** @file
* VMM Testcase.
*/
/*
* Copyright (C) 2006-2007 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#include <iprt/initterm.h>
#include <iprt/semaphore.h>
/*******************************************************************************
* Defined Constants And Macros *
*******************************************************************************/
#define TESTCASE "tstVMM-HwAccm"
{
/*
* Get root node first.
* This is the only node in the tree.
*/
/* rc = CFGMR3InsertInteger(pRoot, "EnableNestedPaging", false);
AssertRC(rc); */
return VINF_SUCCESS;
}
{
int rcRet = 0; /* error count. */
/*
* Doesn't work and I'm sick of rebooting the machine to try figure out
* what the heck is going wrong. (Linux sucks at this)
*/
TESTCASE ": causes kernel panics on linux regardless of what\n"
TESTCASE ": RTAssertDoBreakpoint returns. Only checked AMD-V on linux.\n");
/** @todo Make tstVMM-HwAccm to cause kernel panics. */
return 1;
/*
* Create empty VM.
*/
if (RT_SUCCESS(rc))
{
/*
* Do testing.
*/
/*
* Cleanup.
*/
if (RT_FAILURE(rc))
{
rcRet++;
}
}
else
{
rcRet++;
}
return rcRet;
}