remove #include <stdbool.h> it breaks MSVC 2010

enable gtest by default when using premake, added flag without-gtest
use gtest ASSERT_EQ( expected_value, actual_value) instead of the reverse,
this fixes issue 205 (https://github.com/bulletphysics/bullet3/issues/205)
This commit is contained in:
erwin coumans
2014-08-12 12:18:32 -07:00
parent 4027ed09ae
commit 670576ec72
11 changed files with 117 additions and 117 deletions

View File

@@ -59,7 +59,7 @@ TEST(b3OpenCLUtils, createContextFromPlatform)
cl_context ctx = b3OpenCLUtils::createContextFromPlatform(platform,deviceType,&ciErrNum);
ASSERT_FALSE(ctx==0);
ASSERT_EQ(ciErrNum,CL_SUCCESS);
ASSERT_EQ(CL_SUCCESS,ciErrNum);
clReleaseContext(ctx);
}
}
@@ -83,7 +83,7 @@ TEST(b3OpenCLUtils, getDeviceAndQueue)
b3Printf(" CL_PLATFORM_VERSION: \t\t\t%s\n",platformInfo.m_platformVersion);
cl_context ctx = b3OpenCLUtils::createContextFromPlatform(platform,deviceType,&ciErrNum);
ASSERT_FALSE(ctx==0);
ASSERT_EQ(ciErrNum,CL_SUCCESS);
ASSERT_EQ(CL_SUCCESS,ciErrNum);
int numDevices = b3OpenCLUtils::getNumDevices(ctx);
ASSERT_GT(numDevices,0);