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