diff --git a/src/windows-emulator-test/emulation_test.cpp b/src/windows-emulator-test/emulation_test.cpp index f5833843..8d92439b 100644 --- a/src/windows-emulator-test/emulation_test.cpp +++ b/src/windows-emulator-test/emulation_test.cpp @@ -22,14 +22,14 @@ namespace test TEST(EmulationTest, CountedEmulationIsAccurate) { - auto emu = create_sample_emulator(); + auto emu = create_reproducible_sample_emulator(); emu.start(); ASSERT_TERMINATED_SUCCESSFULLY(emu); const auto executedInstructions = emu.get_executed_instructions(); - auto new_emu = create_sample_emulator(); + auto new_emu = create_reproducible_sample_emulator(); constexpr auto offset = 1; const auto instructionsToExecute = executedInstructions - offset; diff --git a/src/windows-emulator-test/emulation_test_utils.hpp b/src/windows-emulator-test/emulation_test_utils.hpp index a6e8a7ec..cab014c1 100644 --- a/src/windows-emulator-test/emulation_test_utils.hpp +++ b/src/windows-emulator-test/emulation_test_utils.hpp @@ -95,6 +95,11 @@ namespace test return create_sample_emulator(std::move(settings), config); } + inline windows_emulator create_reproducible_sample_emulator() + { + return create_sample_emulator({.reproducible = true}); + } + inline void bisect_emulation(windows_emulator& emu) { utils::buffer_serializer start_state{}; diff --git a/src/windows-emulator-test/serialization_test.cpp b/src/windows-emulator-test/serialization_test.cpp index a14b7e89..803d4046 100644 --- a/src/windows-emulator-test/serialization_test.cpp +++ b/src/windows-emulator-test/serialization_test.cpp @@ -2,14 +2,6 @@ namespace test { - namespace - { - auto create_reproducible_sample_emulator() - { - return create_sample_emulator({.reproducible = true}); - } - } - TEST(SerializationTest, ResettingEmulatorWorks) { auto emu = create_reproducible_sample_emulator();