about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-04-07 09:17:14 +0200
committerGitHub <noreply@github.com>2024-04-07 09:17:14 +0200
commit4eef6e313e025b10f78ef75723708ccb4bc3f808 (patch)
tree7bac150adcb9c6d72cbce34ba4d3b3f21414d9b1 /tests
parentaf2525317be950fdae635bcbb46b3e755d14ab49 (diff)
parentde212963f8543d6c86e554716218fd67b84d64a2 (diff)
downloadrust-4eef6e313e025b10f78ef75723708ccb4bc3f808.tar.gz
rust-4eef6e313e025b10f78ef75723708ccb4bc3f808.zip
Rollup merge of #123410 - madsmtm:relax-framework-linking-test, r=fmease
Relax framework linking test

This test was introduced by myself in https://github.com/rust-lang/rust/pull/118644, but was over-specified in that it assumed the path of the linker was always `cc`, which [causes a test failure for Chromium](https://issues.chromium.org/issues/332562251).
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/linkage-attr/framework.omit.stderr2
-rw-r--r--tests/ui/linkage-attr/framework.rs4
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/ui/linkage-attr/framework.omit.stderr b/tests/ui/linkage-attr/framework.omit.stderr
index 5cb4d391437..23e017cb012 100644
--- a/tests/ui/linkage-attr/framework.omit.stderr
+++ b/tests/ui/linkage-attr/framework.omit.stderr
@@ -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:
diff --git a/tests/ui/linkage-attr/framework.rs b/tests/ui/linkage-attr/framework.rs
index 662ef4c429d..824adf62206 100644
--- a/tests/ui/linkage-attr/framework.rs
+++ b/tests/ui/linkage-attr/framework.rs
@@ -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,"