diff options
Diffstat (limited to 'llvm/unittests/ProfileData/MemProfTest.cpp')
-rw-r--r-- | llvm/unittests/ProfileData/MemProfTest.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/unittests/ProfileData/MemProfTest.cpp b/llvm/unittests/ProfileData/MemProfTest.cpp index b7a9170..c906698 100644 --- a/llvm/unittests/ProfileData/MemProfTest.cpp +++ b/llvm/unittests/ProfileData/MemProfTest.cpp @@ -268,9 +268,7 @@ TEST(MemProf, PortableWrapper) { EXPECT_EQ(3UL, ReadBlock.getAllocCpuId()); } -// Version0 and Version1 serialize IndexedMemProfRecord in the same format, so -// we share one test. -TEST(MemProf, RecordSerializationRoundTripVersion0And1) { +TEST(MemProf, RecordSerializationRoundTripVersion1) { const auto Schema = llvm::memprof::getFullSchema(); MemInfoBlock Info(/*size=*/16, /*access_count=*/7, /*alloc_timestamp=*/1000, @@ -294,11 +292,11 @@ TEST(MemProf, RecordSerializationRoundTripVersion0And1) { std::string Buffer; llvm::raw_string_ostream OS(Buffer); - Record.serialize(Schema, OS, llvm::memprof::Version0); + Record.serialize(Schema, OS, llvm::memprof::Version1); const IndexedMemProfRecord GotRecord = IndexedMemProfRecord::deserialize( Schema, reinterpret_cast<const unsigned char *>(Buffer.data()), - llvm::memprof::Version0); + llvm::memprof::Version1); EXPECT_EQ(Record, GotRecord); } |