Skip to content

Commit

Permalink
Fix assembly tests for simulator targets
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Jun 22, 2022
1 parent 8b53cd1 commit 545d0ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/src/bin/test_assembly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ fn read_assembly<P: AsRef<Path>>(path: P) -> io::Result<String> {
.to_str()
.unwrap();
let s = s.replace(workspace_dir, "$WORKSPACE");
// HACK: Replace Objective-C image info for simulator targets
let s = s.replace(
r#".asciz "\000\000\000\000`\000\000""#,
r#".asciz "\000\000\000\000@\000\000""#,
);
// Strip various uninteresting directives
let s = strip_lines(&s, ".cfi_");
let s = strip_lines(&s, ".macosx_version_");
let s = strip_lines(&s, ".ios_version_");
Expand Down

0 comments on commit 545d0ce

Please sign in to comment.