[clang] Fix diagnostics-dsym.test on mac-arm64 (PR #99399)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 17 15:48:31 PDT 2024


https://github.com/zeroomega created https://github.com/llvm/llvm-project/pull/99399

The check ordering of diagnostics-dsym.test is wrong and it causes
test failure when running on mac-arm64 machine. This patch fixes it.


>From 05f1e5185f95d82f0b05b6151c37f3785baa6e54 Mon Sep 17 00:00:00 2001
From: Haowei Wu <haowei at google.com>
Date: Wed, 17 Jul 2024 15:45:53 -0700
Subject: [PATCH] Fix diagnostics-dsym.test on mac-arm64

The check ordering of diagnostics-dsym.test is wrong and it causes
test failure when running on mac-arm64 machine. This patch fixes it.
---
 clang/test/InstallAPI/diagnostics-dsym.test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) {



More information about the cfe-commits mailing list