aboutsummaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2012-12-17 20:43:53 +0000
committerNick Kledzik <kledzik@apple.com>2012-12-17 20:43:53 +0000
commitc83b8fec01565df67da45f437ca1311f7286e53b (patch)
treeda2dcc5f7657948ccab299a1d7c45567b11b11ef /unittests
parentf3ceaff6395afe9a62db08b483742b0416f63a1a (diff)
re-enable test cases now that traits work with g++. Fix some g++ warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170369 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Support/YAMLIOTest.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/unittests/Support/YAMLIOTest.cpp b/unittests/Support/YAMLIOTest.cpp
index 5c188e0936..68436f8a9f 100644
--- a/unittests/Support/YAMLIOTest.cpp
+++ b/unittests/Support/YAMLIOTest.cpp
@@ -14,9 +14,6 @@
#include "llvm/Support/YAMLTraits.h"
#include "gtest/gtest.h"
-// To keep build bots going, disable tests until I figure out
-// why gcc complains there is no match for these traits.
-#if 0
using llvm::yaml::Input;
using llvm::yaml::Output;
@@ -801,9 +798,9 @@ TEST(YAMLIO, TestReadKindAndFlagsSequence) {
EXPECT_FALSE(yin.error());
EXPECT_EQ(seq.size(), 2UL);
EXPECT_EQ(seq[0].kind, kindA);
- EXPECT_EQ(seq[0].flags, a2);
+ EXPECT_EQ(seq[0].flags, (uint32_t)a2);
EXPECT_EQ(seq[1].kind, kindB);
- EXPECT_EQ(seq[1].flags, b1);
+ EXPECT_EQ(seq[1].flags, (uint32_t)b1);
}
//
@@ -831,15 +828,15 @@ TEST(YAMLIO, TestReadWriteKindAndFlagsSequence) {
EXPECT_FALSE(yin.error());
EXPECT_EQ(seq2.size(), 5UL);
EXPECT_EQ(seq2[0].kind, kindA);
- EXPECT_EQ(seq2[0].flags, a1);
+ EXPECT_EQ(seq2[0].flags, (uint32_t)a1);
EXPECT_EQ(seq2[1].kind, kindB);
- EXPECT_EQ(seq2[1].flags, b1);
+ EXPECT_EQ(seq2[1].flags, (uint32_t)b1);
EXPECT_EQ(seq2[2].kind, kindA);
- EXPECT_EQ(seq2[2].flags, a2);
+ EXPECT_EQ(seq2[2].flags, (uint32_t)a2);
EXPECT_EQ(seq2[3].kind, kindB);
- EXPECT_EQ(seq2[3].flags, b2);
+ EXPECT_EQ(seq2[3].flags, (uint32_t)b2);
EXPECT_EQ(seq2[4].kind, kindA);
- EXPECT_EQ(seq2[4].flags, a3);
+ EXPECT_EQ(seq2[4].flags, (uint32_t)a3);
}
}
@@ -1288,5 +1285,3 @@ TEST(YAMLIO, TestReadBuiltInTypesHex64Error) {
EXPECT_TRUE(yin.error());
}
-
-#endif