From 9383d7038a882f0592071a2f4ffa65c3513a60f0 Mon Sep 17 00:00:00 2001 From: prabhukr Date: Tue, 11 Nov 2025 15:11:52 -0800 Subject: [PATCH] [MachO] Fix test failure. Add requires to not run `invalid-section-index.s` test in non aarch64 supported environments. --- llvm/test/MC/MachO/invalid-section-index.s | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm/test/MC/MachO/invalid-section-index.s b/llvm/test/MC/MachO/invalid-section-index.s index 55a0ce5b40ea7..104e8a82e43af 100644 --- a/llvm/test/MC/MachO/invalid-section-index.s +++ b/llvm/test/MC/MachO/invalid-section-index.s @@ -1,6 +1,8 @@ +// REQUIRES: aarch64-registered-target + /// Test that when there are more than 255 sections, error is shown specifying too many sections. -// RUN: not llvm-mc -filetype=obj -triple arm64-apple-macos %s -o - 2>&1 | FileCheck %s --check-prefix=MACHOERROR +// RUN: not llvm-mc -filetype=obj -triple arm64-apple-darwin %s -o - 2>&1 | FileCheck %s --check-prefix=MACHOERROR // MACHOERROR: error: Too many sections! // MACHOERROR-NEXT: error: Invalid section index!