Tests are adjusted to use blocking FPGA mode

This commit is contained in:
2023-09-06 12:35:44 +02:00
parent 3aeb3e09ee
commit da045c023b
2 changed files with 20 additions and 8 deletions

View File

@@ -77,7 +77,7 @@ TEST_CASE("HLS_C_Simulation_internal_packet_generator_custom_frame", "[FPGA][Ful
HLSSimulatedDevice test(0, 64);
test.SetCustomInternalGeneratorFrame(test_frame);
test.SetFPGANonBlockingMode(true);
test.SetFPGANonBlockingMode(false);
REQUIRE_NOTHROW(test.StartAction(x));
REQUIRE_NOTHROW(test.WaitForActionComplete());
@@ -119,7 +119,7 @@ TEST_CASE("HLS_C_Simulation_check_raw", "[FPGA][Full]") {
HLSSimulatedDevice test(0, 64);
test.CreatePackets(x, 1, 5, 0, raw_frames.data(), true);
test.CreateFinalPacket(x);
test.SetFPGANonBlockingMode(false);
REQUIRE_NOTHROW(test.StartAction(x));
REQUIRE_NOTHROW(test.WaitForActionComplete());
@@ -253,6 +253,7 @@ TEST_CASE("HLS_C_Simulation_check_lost_frame_raw", "[FPGA][Full]") {
test.CreatePacketJF(x, 1, 0, 0, data, false);
test.CreateFinalPacket(x);
test.SetFPGANonBlockingMode(false);
REQUIRE_NOTHROW(test.StartAction(x));
REQUIRE_NOTHROW(test.WaitForActionComplete());