tstShflSizes.cpp revision da46e47d18df400d98d0fa231743083377526fd3
/** @file
*
* Testcase for shared folder structure sizes.
* Run this on Linux and Windows, then compare.
*/
/*
* Copyright (C) 2006-2007 innotek GmbH
*
* 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.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
do { \
if (fPrintChecks) \
else if ((size) != sizeof(t)) \
{ \
cErrors++; \
} \
else \
RTPrintf("%30s: %d\n", #t, (int)sizeof(t)); \
} while (0)
{
unsigned cErrors = 0;
/*
* Prints the code below if any argument was giving.
*/
/*
* The checks.
*/
/*
* The summary.
*/
if (!cErrors)
RTPrintf("tstShflSizes: SUCCESS\n");
else
return !!cErrors;
}