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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user