1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0029124: Visualization, Tests - failures when tests are executed via Remote Desktop connection

Protection against accessing null pointer is added in OpenGl_VertexBuffer::Create().
In command vreadpixel OpenGl-related warnings are redirected to cout so that they do not contaminate the command output.
Test grid caf presentation is configured to ignore OpenGl-related warning messages.
Tests in grid tools are configured to report status SKIPPED if tools are not available (OCCT is built without Qt).
This commit is contained in:
abv
2017-09-19 13:04:23 +03:00
committed by bugmaster
parent 151da08bbe
commit 68beaa3c57
5 changed files with 19 additions and 7 deletions

View File

@@ -6022,6 +6022,16 @@ static int VReadPixel (Draw_Interpretor& theDI,
return 1;
}
// redirect possible warning messages that could have been added by ToPixMap
// into the Tcl interpretor (via DefaultMessenger) to cout, so that they do not
// contaminate result of the command
Standard_CString aWarnLog = theDI.Result();
if (aWarnLog != NULL && aWarnLog[0] != '\0')
{
std::cout << aWarnLog << std::endl;
}
theDI.Reset();
Quantity_ColorRGBA aColor = anImage.PixelColor (anX, anY);
if (toShowName)
{