Skip to content

Commit f9cce82

Browse files
committed
Fix assembly tests for simulator targets
1 parent 8b53cd1 commit f9cce82

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/src/bin/test_assembly.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ fn read_assembly<P: AsRef<Path>>(path: P) -> io::Result<String> {
5353
.to_str()
5454
.unwrap();
5555
let s = s.replace(workspace_dir, "$WORKSPACE");
56+
// HACK: Replace Objective-C image info for simulator targets
57+
let s = s.replace(
58+
".asciz\t\"\\000\\000\\000\\000`\\000\\000\"",
59+
".asciz\t\"\\000\\000\\000\\000@\\000\\000\"",
60+
);
61+
// Strip various uninteresting directives
5662
let s = strip_lines(&s, ".cfi_");
5763
let s = strip_lines(&s, ".macosx_version_");
5864
let s = strip_lines(&s, ".ios_version_");

0 commit comments

Comments
 (0)