GSYMTest::TestLineTable - check all LT1+LT2 comparisons.

PVS Studio was warning about "LT2 < LT2" but really we should be testing all permutations of LT1 and LT2.
This commit is contained in:
Simon Pilgrim 2019-11-02 19:24:03 +00:00
parent 10e761fa76
commit c1f5f74bca

View File

@ -853,7 +853,9 @@ TEST(GSYMTest, TestLineTable) {
// Test that two empty line tables are equal and neither are less than
// each other.
ASSERT_EQ(LT1, LT2);
ASSERT_FALSE(LT1 < LT1);
ASSERT_FALSE(LT1 < LT2);
ASSERT_FALSE(LT2 < LT1);
ASSERT_FALSE(LT2 < LT2);
// Test that a line table with less number of line entries is less than a