Skip to content

Commit

Permalink
[T/GL] Disable tests for not up-to-date MSVC++.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomFischer committed Apr 20, 2016
1 parent bfcc0a3 commit 8dc858d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Tests/GeoLib/TestLineSegmentIntersect2d.cpp
Expand Up @@ -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.
Expand Down Expand Up @@ -145,3 +152,5 @@ TEST_F(LineSegmentIntersect2dTest, ParallelIntersectingSegmentOrientation)
ac::make_arbitrary(pair_segment_generator2),
gtest_reporter);
}

#endif

0 comments on commit 8dc858d

Please sign in to comment.