mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-28 07:29:15 +00:00
Replaced assert() with new macro TEST() in all tests, to check conditions also in Release configuration.
This commit is contained in:
parent
4868c1f523
commit
a7d7769959
4 changed files with 227 additions and 198 deletions
|
@ -1767,10 +1767,24 @@ static LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
PostMessage(hWnd, WM_CLOSE, 0, 0);
|
||||
break;
|
||||
case 'T':
|
||||
Test();
|
||||
try
|
||||
{
|
||||
Test();
|
||||
}
|
||||
catch(const std::exception& ex)
|
||||
{
|
||||
printf("ERROR: %s\n", ex.what());
|
||||
}
|
||||
break;
|
||||
case 'S':
|
||||
TestSparseBinding();
|
||||
try
|
||||
{
|
||||
TestSparseBinding();
|
||||
}
|
||||
catch(const std::exception& ex)
|
||||
{
|
||||
printf("ERROR: %s\n", ex.what());
|
||||
}
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue