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 3, 2024
1 parent 99c42d2 commit dfd40be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 0 additions & 6 deletions tests/ui/linkage-attr/framework.omit.stderr
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
error: linking with `cc` failed: exit status: 1
|
ld: Undefined symbols:
_CFRunLoopGetTypeID, referenced from:
clang: error: linker command failed with exit code 1 (use -v to see invocation)


error: aborting due to 1 previous error
3 changes: 2 additions & 1 deletion tests/ui/linkage-attr/framework.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
//@ [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, and depends
// on linker invocation details.
//@ compare-output-lines-by-subset
//@ normalize-stderr-test: "Undefined symbols for architecture .*" -> "ld: Undefined symbols:"
//@ normalize-stderr-test: "._CFRunLoopGetTypeID.," -> "_CFRunLoopGetTypeID,"
Expand Down

0 comments on commit dfd40be

Please sign in to comment.