Fix up configuration tests

Signed-off-by: Lakira Ashley <lakridesagain@gmail.com>
This commit is contained in:
Lakira Ashley 2022-11-29 11:48:54 +10:30 committed by Hans Baier
parent da0f14f5fe
commit a92201dd3b
2 changed files with 6 additions and 4 deletions

View File

@ -153,7 +153,8 @@ TEST(ConfigurationTest, DISABLED_CheckForPaddingAfterIOBFrame) {
frames.getFrames(), test_part);
// createType2ConfigurationPacketData should add a 16-bit pad word after
// after the IOB frame
EXPECT_EQ(packet_data.size(), 3 * 65 + 1);
EXPECT_EQ(packet_data.frames.size(), 1);
EXPECT_EQ(packet_data.frames[0].data.size(), 3 * 65 + 1);
std::vector<uint32_t> idcode{0x1234};
std::vector<uint32_t> cmd{0x0001};
@ -182,7 +183,7 @@ TEST(ConfigurationTest, DISABLED_CheckForPaddingAfterIOBFrame) {
static_cast<unsigned int>(0x1),
ConfigurationPacket<Spartan6::ConfRegType>::Opcode::Write,
Spartan6::ConfRegType::FDRI,
absl::MakeSpan(packet_data),
absl::MakeSpan(packet_data.frames[0].data),
},
};

View File

@ -278,7 +278,8 @@ TEST(ConfigurationTest, CheckForPaddingFrames) {
// extra padding frames are added at the end of the creation of the data
// overall this gives us: 5(real frames) + 4*2 + 2 = 15 frames, which is
// 15 * 101 = 1515 words
EXPECT_EQ(packet_data.size(), 15 * 101);
EXPECT_EQ(packet_data.frames.size(), 1);
EXPECT_EQ(packet_data.frames[0].data.size(), 15 * 101);
std::vector<uint32_t> idcode{0x1234};
std::vector<uint32_t> cmd{0x0001};
@ -307,7 +308,7 @@ TEST(ConfigurationTest, CheckForPaddingFrames) {
static_cast<unsigned int>(0x1),
ConfigurationPacket<Series7::ConfRegType>::Opcode::Write,
Series7::ConfRegType::FDRI,
absl::MakeSpan(packet_data),
absl::MakeSpan(packet_data.frames[0].data),
},
};