From 663848a58176daf9d40cb614ee731343a786624a Mon Sep 17 00:00:00 2001 From: Thomas Fischer Date: Wed, 20 Apr 2016 11:46:45 +0200 Subject: [PATCH] [T/GL] Disable tests for not up-to-date MSVC++. --- Tests/GeoLib/TestLineSegmentIntersect2d.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Tests/GeoLib/TestLineSegmentIntersect2d.cpp b/Tests/GeoLib/TestLineSegmentIntersect2d.cpp index 27c00385103..7670e7767e6 100644 --- a/Tests/GeoLib/TestLineSegmentIntersect2d.cpp +++ b/Tests/GeoLib/TestLineSegmentIntersect2d.cpp @@ -50,6 +50,13 @@ class LineSegmentIntersect2dTest : public testing::Test ac::gtest_reporter gtest_reporter; }; +#if defined(_MSC_VER) && _MSC_VER < 1900 +// Compilers of MVS below 2015 do not support unrestricted unions. The +// unrestricted union is used by autocheck to handle test data. The autocheck +// workaround for MVS compilers (below version 2015) contains a bug and in the +// consequence the tests crashes. For this reason the tests are disabled under +// this environments. + // Test the intersection of intersecting line segments. Line segments are chords // of the same circle that both contains the center of the circle. As a // consequence the center of the circle is the intersection point. @@ -145,3 +152,5 @@ TEST_F(LineSegmentIntersect2dTest, ParallelIntersectingSegmentOrientation) ac::make_arbitrary(pair_segment_generator2), gtest_reporter); } + +#endif