Replaced assert() with new macro TEST() in all tests, to check conditions also in Release configuration.

# Conflicts:
#	src/SparseBindingTest.cpp
#	src/Tests.cpp
#	src/VulkanSample.cpp
This commit is contained in:
Adam Sawicki 2018-10-03 17:41:20 +02:00
parent 1f7f8afdd7
commit b8d34d5e6a
3 changed files with 208 additions and 186 deletions

View file

@ -1714,7 +1714,14 @@ 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;
}
return 0;