Skip to content

Commit 0cc4473

Browse files
committed
try fix
1 parent 4739401 commit 0cc4473

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/machine/instruction.test.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ void TestInstruction::instruction_to_str() {
7171
for (size_t j = 0; j < pesude_code_to_string[i].pairs.size(); j++) {
7272
Pair pair = pesude_code_to_string[i].pairs[j];
7373
uint32_t code;
74-
Instruction::code_from_string(
75-
&code, pair.str.length(), pair.str, machine::Address(0x0));
74+
Instruction::code_from_string(&code, pair.str.length(), pair.str, Address(0x0));
7675
QCOMPARE(Instruction(pair.code).to_str(), pair.str);
7776
}
7877
}
@@ -86,7 +85,7 @@ void TestInstruction::instruction_code_from_str() {
8685
: code_to_string[i].alias_str;
8786
uint32_t code = 0;
8887
Instruction::code_from_string(
89-
&code, code_to_string[i].str.length(), test_string_data, machine::Address(0x0));
88+
&code, code_to_string[i].str.length(), test_string_data, Address(0x0));
9089
QCOMPARE(code, code_to_string[i].code);
9190
}
9291

@@ -95,11 +94,12 @@ void TestInstruction::instruction_code_from_str() {
9594
RelocExpressionList reloc = {};
9695
Instruction::code_from_string(
9796
code, pesude_code_to_string[i].string_data.length(),
98-
pesude_code_to_string[i].string_data, machine::Address(0x0), &reloc, nullptr, 0, true);
97+
pesude_code_to_string[i].string_data, Address(0x0), &reloc, nullptr, 0, true);
9998
for (size_t j = 0; j < pesude_code_to_string[i].pairs.size(); j++) {
10099
Pair pair = pesude_code_to_string[i].pairs[j];
101100
QCOMPARE(code[j], pair.code);
102101
}
102+
reloc.clear();
103103
}
104104
}
105105

src/machine/instruction.test.gendata.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include "machine/instruction.cpp"
44

55
#include <QFile>
6-
#include <unordered_set>
76

87
using namespace machine;
98

0 commit comments

Comments
 (0)