-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Fix diagnostics-dsym.test on mac-arm64 #99399
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
Conversation
Example of the failure:
After this patch. It passes. |
@llvm/pr-subscribers-clang Author: Haowei (zeroomega) ChangesThe check ordering of diagnostics-dsym.test is wrong and it causes Full diff: https://github.com/llvm/llvm-project/pull/99399.diff 1 Files Affected:
diff --git a/clang/test/InstallAPI/diagnostics-dsym.test b/clang/test/InstallAPI/diagnostics-dsym.test
index 42fa67a1f9b1e..fb760d1858ba3 100644
--- a/clang/test/InstallAPI/diagnostics-dsym.test
+++ b/clang/test/InstallAPI/diagnostics-dsym.test
@@ -19,8 +19,8 @@
; RUN: --verify-mode=Pedantic 2>&1 | FileCheck %s
; CHECK: violations found for arm64
-; CHECK: foo.c:5:0: error: no declaration found for exported symbol 'bar' in dynamic library
; CHECK: foo.c:1:0: error: no declaration found for exported symbol 'foo' in dynamic library
+; CHECK: foo.c:5:0: error: no declaration found for exported symbol 'bar' in dynamic library
;--- foo.c
int foo(void) {
|
Thank you @zeroomega ! I am also running on arm64-mac and that test is passing. What is your |
Our build is a bit complicated to setup since we use a clang (near tip of the tree) which linked to llvm-libcxx, as the host toolchain. But when I try to build the clang with the toolchain came with the xcode, the original test file passed, and after I swapped the ordering, it failed. So apparently the output ordering is a bit non-deterministic. And since Let me test the |
The output ordering of diagnostics-dsym.test is non-deterministic, which cases test failures on mac-arm64 when using some toolchains that are not shipped from the xcode. This patch change the 'CHECK' to 'CHECK-DAG' to mitigate this issue.
@cyndyishida I updated the patch to use CHECK-DAG and confirm the test now pass under both XCode toolchain and our in house one. Please take a look. Thx. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for looking into & resolving this again!
The check ordering of diagnostics-dsym.test is wrong and it causes test failure when running on mac-arm64 machine. This patch fixes it.
The check ordering of diagnostics-dsym.test is wrong and it causes
test failure when running on mac-arm64 machine. This patch fixes it.