File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -81,8 +81,10 @@ int testInit() {
8181 TestCase tc = {.name = " testcase" ,
8282 .instruction_bytes = {0x90 },
8383 .initial_registers = {{ZYDIS_REGISTER_RAX, 1 }},
84- .expected_registers = {{ZYDIS_REGISTER_RAX, 2 }},
85- .expected_flags = {{FLAG_CF, FlagState::UNKNOWN}}};
84+ .initial_flags = {{FLAG_CF, FlagState::SET}},
85+
86+ .expected_registers = {{ZYDIS_REGISTER_RAX, 1 }},
87+ .expected_flags = {{FLAG_CF, FlagState::SET}}};
8688 tester.execute_test_case (tc);
8789 tester.addTest (tc);
8890 return tester.runAllTests ();
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ struct TestCase {
4747
4848 // Inputs
4949 std::vector<uint8_t > instruction_bytes;
50- std::vector<FlagsState> initial_flags;
5150 std::vector<RegisterState> initial_registers;
51+ std::vector<FlagsState> initial_flags;
5252
5353 // Expected outputs
5454 std::vector<RegisterState> expected_registers;
You can’t perform that action at this time.
0 commit comments