forked from OSchip/llvm-project
InstrProf: Fix unit test which accidentally used a duplicate name
This unit test constructed some profile records incorrectly. One of the records had a duplicate name: adding that record into the writer caused an error unrelated to what needed to be tested. Reported by David Blaikie! llvm-svn: 307596
This commit is contained in:
parent
f7850fa8b6
commit
910d3d0541
|
@ -996,10 +996,7 @@ TEST_P(MaybeSparseInstrProfTest, instr_prof_symtab_compression_test) {
|
||||||
TEST_F(SparseInstrProfTest, preserve_no_records) {
|
TEST_F(SparseInstrProfTest, preserve_no_records) {
|
||||||
Writer.addRecord({"foo", 0x1234, {0}}, Err);
|
Writer.addRecord({"foo", 0x1234, {0}}, Err);
|
||||||
Writer.addRecord({"bar", 0x4321, {0, 0}}, Err);
|
Writer.addRecord({"bar", 0x4321, {0, 0}}, Err);
|
||||||
// FIXME: I'm guessing this data should be different, but the original author
|
Writer.addRecord({"baz", 0x4321, {0, 0, 0}}, Err);
|
||||||
// should check/update this test so it doesn't produce errors.
|
|
||||||
Writer.addRecord({"bar", 0x4321, {0, 0, 0}},
|
|
||||||
[](Error E) { consumeError(std::move(E)); });
|
|
||||||
|
|
||||||
auto Profile = Writer.writeBuffer();
|
auto Profile = Writer.writeBuffer();
|
||||||
readProfile(std::move(Profile));
|
readProfile(std::move(Profile));
|
||||||
|
|
Loading…
Reference in New Issue