-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Reapply "[nfc][Driver] Remove {{(.exe)?}} from sanitizer test (#121160)" #121162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reapply "[nfc][Driver] Remove {{(.exe)?}} from sanitizer test (#121160)" #121162
Conversation
Created using spr 1.3.4
@llvm/pr-subscribers-clang Author: Vitaly Buka (vitalybuka) ChangesTarget "androideabi" adds .exe in some cases. #121160 Full diff: https://github.com/llvm/llvm-project/pull/121162.diff 1 Files Affected:
diff --git a/clang/test/Driver/sanitizer-ld.c b/clang/test/Driver/sanitizer-ld.c
index 763230568251c6..54e153f2e47eb4 100644
--- a/clang/test/Driver/sanitizer-ld.c
+++ b/clang/test/Driver/sanitizer-ld.c
@@ -242,7 +242,7 @@
// RUN: -resource-dir=%S/Inputs/resource_dir \
// RUN: | %{filecheck} --check-prefix=CHECK-ASAN-ANDROID
//
-// CHECK-ASAN-ANDROID: "{{(.*[^.0-9A-Z_a-z])?}}ld.lld"
+// CHECK-ASAN-ANDROID: "{{(.*[^.0-9A-Z_a-z])?}}ld.lld{{(.exe)?}}"
// CHECK-ASAN-ANDROID: "-pie"
// CHECK-ASAN-ANDROID-NOT: "-lc"
// CHECK-ASAN-ANDROID-NOT: "-lpthread"
@@ -265,7 +265,7 @@
// RUN: -static-libasan \
// RUN: | %{filecheck} --check-prefix=CHECK-ASAN-ANDROID-STATICLIBASAN
//
-// CHECK-ASAN-ANDROID-STATICLIBASAN: "{{(.*[^.0-9A-Z_a-z])?}}ld.lld"
+// CHECK-ASAN-ANDROID-STATICLIBASAN: "{{(.*[^.0-9A-Z_a-z])?}}ld.lld{{(.exe)?}}"
// CHECK-ASAN-ANDROID-STATICLIBASAN: libclang_rt.asan.a"
// CHECK-ASAN-ANDROID-STATICLIBASAN-NOT: "-lpthread"
// CHECK-ASAN-ANDROID-STATICLIBASAN-NOT: "-lrt"
@@ -306,7 +306,7 @@
// RUN: -resource-dir=%S/Inputs/resource_dir \
// RUN: | %{filecheck} --check-prefix=CHECK-ASAN-ANDROID-X86
//
-// CHECK-ASAN-ANDROID-X86: "{{(.*[^.0-9A-Z_a-z])?}}ld.lld"
+// CHECK-ASAN-ANDROID-X86: "{{(.*[^.0-9A-Z_a-z])?}}ld.lld{{(.exe)?}}"
// CHECK-ASAN-ANDROID-X86: "-pie"
// CHECK-ASAN-ANDROID-X86-NOT: "-lc"
// CHECK-ASAN-ANDROID-X86-NOT: "-lpthread"
@@ -330,7 +330,7 @@
// RUN: -shared \
// RUN: | %{filecheck} --check-prefix=CHECK-ASAN-ANDROID-SHARED
//
-// CHECK-ASAN-ANDROID-SHARED: "{{(.*[^.0-9A-Z_a-z])?}}ld.lld"
+// CHECK-ASAN-ANDROID-SHARED: "{{(.*[^.0-9A-Z_a-z])?}}ld.lld{{(.exe)?}}"
// CHECK-ASAN-ANDROID-SHARED-NOT: "-lc"
// CHECK-ASAN-ANDROID-SHARED: libclang_rt.asan.so"
// CHECK-ASAN-ANDROID-SHARED-NOT: "-lpthread"
|
@llvm/pr-subscribers-clang-driver Author: Vitaly Buka (vitalybuka) ChangesTarget "androideabi" adds .exe in some cases. #121160 Full diff: https://github.com/llvm/llvm-project/pull/121162.diff 1 Files Affected:
diff --git a/clang/test/Driver/sanitizer-ld.c b/clang/test/Driver/sanitizer-ld.c
index 763230568251c6..54e153f2e47eb4 100644
--- a/clang/test/Driver/sanitizer-ld.c
+++ b/clang/test/Driver/sanitizer-ld.c
@@ -242,7 +242,7 @@
// RUN: -resource-dir=%S/Inputs/resource_dir \
// RUN: | %{filecheck} --check-prefix=CHECK-ASAN-ANDROID
//
-// CHECK-ASAN-ANDROID: "{{(.*[^.0-9A-Z_a-z])?}}ld.lld"
+// CHECK-ASAN-ANDROID: "{{(.*[^.0-9A-Z_a-z])?}}ld.lld{{(.exe)?}}"
// CHECK-ASAN-ANDROID: "-pie"
// CHECK-ASAN-ANDROID-NOT: "-lc"
// CHECK-ASAN-ANDROID-NOT: "-lpthread"
@@ -265,7 +265,7 @@
// RUN: -static-libasan \
// RUN: | %{filecheck} --check-prefix=CHECK-ASAN-ANDROID-STATICLIBASAN
//
-// CHECK-ASAN-ANDROID-STATICLIBASAN: "{{(.*[^.0-9A-Z_a-z])?}}ld.lld"
+// CHECK-ASAN-ANDROID-STATICLIBASAN: "{{(.*[^.0-9A-Z_a-z])?}}ld.lld{{(.exe)?}}"
// CHECK-ASAN-ANDROID-STATICLIBASAN: libclang_rt.asan.a"
// CHECK-ASAN-ANDROID-STATICLIBASAN-NOT: "-lpthread"
// CHECK-ASAN-ANDROID-STATICLIBASAN-NOT: "-lrt"
@@ -306,7 +306,7 @@
// RUN: -resource-dir=%S/Inputs/resource_dir \
// RUN: | %{filecheck} --check-prefix=CHECK-ASAN-ANDROID-X86
//
-// CHECK-ASAN-ANDROID-X86: "{{(.*[^.0-9A-Z_a-z])?}}ld.lld"
+// CHECK-ASAN-ANDROID-X86: "{{(.*[^.0-9A-Z_a-z])?}}ld.lld{{(.exe)?}}"
// CHECK-ASAN-ANDROID-X86: "-pie"
// CHECK-ASAN-ANDROID-X86-NOT: "-lc"
// CHECK-ASAN-ANDROID-X86-NOT: "-lpthread"
@@ -330,7 +330,7 @@
// RUN: -shared \
// RUN: | %{filecheck} --check-prefix=CHECK-ASAN-ANDROID-SHARED
//
-// CHECK-ASAN-ANDROID-SHARED: "{{(.*[^.0-9A-Z_a-z])?}}ld.lld"
+// CHECK-ASAN-ANDROID-SHARED: "{{(.*[^.0-9A-Z_a-z])?}}ld.lld{{(.exe)?}}"
// CHECK-ASAN-ANDROID-SHARED-NOT: "-lc"
// CHECK-ASAN-ANDROID-SHARED: libclang_rt.asan.so"
// CHECK-ASAN-ANDROID-SHARED-NOT: "-lpthread"
|
Created using spr 1.3.4
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/81/builds/3387 Here is the relevant piece of the build log for the reference
|
These tests are failing for me locally on windows now. Why are you removing this? |
I don't really understand why this is needed either. Should we revert? |
This reverts llvm#121162, which was a reapply of the previous revert earlier in llvm#121160 - The change blatantly breaks tests on windows and it isn't clear why it's being made. This reverts commit 8e9fda1.
…121280) This reverts #121162, which was a reapply of the previous revert earlier in #121160 - The change blatantly breaks tests on windows and it isn't clear why it's being made. Note that I needed to add the optional .exe suffix to a few more check lines that were added as a follow up. This reverts commit 8e9fda1.
I've gone ahead and reverted it. |
This is not correct. Windows GetLinkerPath does append |
Thanks for reverting. Could you please provide some information on how it fails? Error output would be enough. Upstream windows bot are OK.
How do upstream bots pass?
It's not worth it. The idea was just to simplify the test. So I'll just give up on the patch. |
There is this configured buildkite https://buildkite.com/llvm-project/github-pull-requests/builds/132244 It's Windows, but only Android lines of the test fail. |
This reverts commit ca28fcc.
Android targets pass on Windows buildbots, but fails on buildkite
https://buildkite.com/llvm-project/github-pull-requests/builds/132244
Re-apply #121160