[llvm] [NFC] Use FileCheck to test for thin archive (PR #215527)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 04:42:51 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-bolt

Author: Amilendra Kodithuwakku (amilendra)

<details>
<summary>Changes</summary>

This follows how other tests check for thin archive format. This also works on hosts that do not install the 'file' utility by default.

---
Full diff: https://github.com/llvm/llvm-project/pull/215527.diff


1 Files Affected:

- (modified) bolt/test/runtime/thin-archive.c (+2-2) 


``````````diff
diff --git a/bolt/test/runtime/thin-archive.c b/bolt/test/runtime/thin-archive.c
index 71743004489ed..a033b8e0c7cab 100644
--- a/bolt/test/runtime/thin-archive.c
+++ b/bolt/test/runtime/thin-archive.c
@@ -6,8 +6,8 @@
 
 // RUN: cd %t/objects && llvm-ar x %libbolt_rt_instr
 // RUN: cd %t && llvm-ar rcT libbolt_rt_instr.a objects/*
-// RUN: file %t/libbolt_rt_instr.a | FileCheck %s --check-prefix=CHECK-THIN
-// CHECK-THIN: thin archive
+// RUN: FileCheck --input-file %t/libbolt_rt_instr.a --check-prefix=THIN %s
+// THIN: !<thin>
 
 // RUN: %clang %cflags -no-pie -Wl,-q -o %t/exe %s
 // RUN: llvm-bolt -o %t/exe.bolt %t/exe \

``````````

</details>


https://github.com/llvm/llvm-project/pull/215527


More information about the llvm-commits mailing list