[llvm] 16ab0b6 - [llvm-readobj][test][NFC] - Use "--check-prefix" instead of "--check-prefixes".

Georgii Rymar via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 29 23:51:29 PDT 2020


Author: Georgii Rymar
Date: 2020-10-30T09:50:59+03:00
New Revision: 16ab0b6778be81f1f79ae71b88a051b8ba5ca8f6

URL: https://github.com/llvm/llvm-project/commit/16ab0b6778be81f1f79ae71b88a051b8ba5ca8f6
DIFF: https://github.com/llvm/llvm-project/commit/16ab0b6778be81f1f79ae71b88a051b8ba5ca8f6.diff

LOG: [llvm-readobj][test][NFC] - Use "--check-prefix" instead of "--check-prefixes".

We have the `--check-prefixes` invocation for a single suffix.
It is cleaner to use `--check-prefix` in this case.

Added: 
    

Modified: 
    llvm/test/tools/llvm-readobj/ELF/needed-libs.test

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/llvm-readobj/ELF/needed-libs.test b/llvm/test/tools/llvm-readobj/ELF/needed-libs.test
index a231e2828ebe..ec2c1178c5ac 100644
--- a/llvm/test/tools/llvm-readobj/ELF/needed-libs.test
+++ b/llvm/test/tools/llvm-readobj/ELF/needed-libs.test
@@ -58,7 +58,7 @@ ProgramHeaders:
 ## Check what we print when the dynamic string table is empty.
 # RUN: yaml2obj %s --docnum=2 -o %t2
 # RUN: llvm-readobj --needed-libs %t2 2>&1 | \
-# RUN:   FileCheck %s -DFILE=%t2 --implicit-check-not=warning: --check-prefixes=EMPTY-DYNSTR
+# RUN:   FileCheck %s -DFILE=%t2 --implicit-check-not=warning: --check-prefix=EMPTY-DYNSTR
 # RUN: llvm-readelf --needed-libs %t2 2>&1 | \
 # RUN:   FileCheck %s -DFILE=%t2 --implicit-check-not=warning: --check-prefix=EMPTY-DYNSTR
 


        


More information about the llvm-commits mailing list