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
This commit is contained in:
Nick Kledzik 2012-12-17 20:43:53 +00:00
parent f3ceaff639
commit c83b8fec01

View File

@ -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