https://github.com/zeroomega updated https://github.com/llvm/llvm-project/pull/99399
>From 15ac1fc1d3e2ca29e5b7b18a794f8ad036f95368 Mon Sep 17 00:00:00 2001 From: Haowei Wu <hao...@google.com> Date: Wed, 17 Jul 2024 15:45:53 -0700 Subject: [PATCH] Fix diagnostics-dsym.test on mac-arm64 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. --- clang/test/InstallAPI/diagnostics-dsym.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/test/InstallAPI/diagnostics-dsym.test b/clang/test/InstallAPI/diagnostics-dsym.test index 42fa67a1f9b1e..b8433653c3f76 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-DAG: foo.c:5:0: error: no declaration found for exported symbol 'bar' in dynamic library +; CHECK-DAG: foo.c:1:0: error: no declaration found for exported symbol 'foo' in dynamic library ;--- foo.c int foo(void) { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits