Skip to content

Commit b146496

Browse files
committed
Rename ARM patch test functions
1 parent ef6fb71 commit b146496

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

libafl_qemu/librasan/asan/tests/patch_raw.rs

+14-14
Original file line numberDiff line numberDiff line change
@@ -148,50 +148,50 @@ mod tests {
148148
};
149149
}
150150

151-
define_test_function!(test_arm1, 0xdeadface);
152-
define_test_function!(test_arm2, 0xd00df00d);
153-
define_test_function!(test_arm3, 0xfeeddeaf);
151+
define_test_function!(arm_patch_target, 0xdeadface);
152+
define_test_function!(patched_arm_to_arm, 0xd00df00d);
153+
define_test_function!(patched_arm_to_thumb, 0xfeeddeaf);
154154
define_test_function!(
155155
target_feature(enable = "thumb-mode"),
156-
test_thumb1,
156+
thumb_patch_target,
157157
0xcafebabe
158158
);
159159
define_test_function!(
160160
target_feature(enable = "thumb-mode"),
161-
test_thumb2,
161+
patched_thumb_to_thumb,
162162
0xbeeffade
163163
);
164164
define_test_function!(
165165
target_feature(enable = "thumb-mode"),
166-
test_thumb3,
166+
patched_thumb_to_arm,
167167
0xdeedcede
168168
);
169169

170170
define_test!(
171171
test_patch_arm_to_arm,
172-
test_arm2,
173-
test_arm1,
172+
patched_arm_to_arm,
173+
arm_patch_target,
174174
0xd00df00d,
175175
0xdeadface
176176
);
177177
define_test!(
178178
test_patch_arm_to_thumb,
179-
test_arm3,
180-
test_thumb1,
179+
patched_arm_to_thumb,
180+
thumb_patch_target,
181181
0xfeeddeaf,
182182
0xcafebabe
183183
);
184184
define_test!(
185185
test_patch_thumb_to_arm,
186-
test_thumb3,
187-
test_arm1,
186+
patched_thumb_to_arm,
187+
arm_patch_target,
188188
0xdeedcede,
189189
0xdeadface
190190
);
191191
define_test!(
192192
test_patch_thumb_to_thumb,
193-
test_thumb2,
194-
test_thumb1,
193+
patched_thumb_to_thumb,
194+
thumb_patch_target,
195195
0xbeeffade,
196196
0xcafebabe
197197
);

0 commit comments

Comments
 (0)