Skip to content

Commit

Permalink
Relax framework linking test
Browse files Browse the repository at this point in the history
This test was introduced in #118644, but was over-specified in that it assumed the path of the linker was always `cc`.
  • Loading branch information
madsmtm committed Apr 6, 2024
1 parent 23d47db commit de21296
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/ui/linkage-attr/framework.omit.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error: linking with `cc` failed: exit status: 1
error: linking with `LINKER` failed: exit status: 1
|
ld: Undefined symbols:
_CFRunLoopGetTypeID, referenced from:
Expand Down
4 changes: 3 additions & 1 deletion tests/ui/linkage-attr/framework.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
//@ [weak]run-pass
//@ [both]run-pass

// The linker's exact error output changes between Xcode versions.
// The linker's exact error output changes between Xcode versions, depends on
// linker invocation details, and the linker sometimes outputs more warnings.
//@ compare-output-lines-by-subset
//@ normalize-stderr-test: "linking with `.*` failed" -> "linking with `LINKER` failed"
//@ normalize-stderr-test: "Undefined symbols for architecture .*" -> "ld: Undefined symbols:"
//@ normalize-stderr-test: "._CFRunLoopGetTypeID.," -> "_CFRunLoopGetTypeID,"

Expand Down

0 comments on commit de21296

Please sign in to comment.