[llvm] 0d863b5 - [llvm-objcopy][test] Add cmp after copy
    Keith Smiley via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon May 16 16:05:15 PDT 2022
    
    
  
Author: Keith Smiley
Date: 2022-05-16T16:04:35-07:00
New Revision: 0d863b5b90a2f11e58b0b54d7183cb1577fd3a0b
URL: https://github.com/llvm/llvm-project/commit/0d863b5b90a2f11e58b0b54d7183cb1577fd3a0b
DIFF: https://github.com/llvm/llvm-project/commit/0d863b5b90a2f11e58b0b54d7183cb1577fd3a0b.diff
LOG: [llvm-objcopy][test] Add cmp after copy
All of the other tests here either check that the copy fails, or that
the resulting binary is the same, it seems like this check was omitted
for the universal object case.
Differential Revision: https://reviews.llvm.org/D125478
Added: 
    
Modified: 
    llvm/test/tools/llvm-objcopy/MachO/universal-object.test
Removed: 
    
################################################################################
diff  --git a/llvm/test/tools/llvm-objcopy/MachO/universal-object.test b/llvm/test/tools/llvm-objcopy/MachO/universal-object.test
index a6146fd56483a..3db879558372c 100644
--- a/llvm/test/tools/llvm-objcopy/MachO/universal-object.test
+++ b/llvm/test/tools/llvm-objcopy/MachO/universal-object.test
@@ -26,6 +26,7 @@
 ## Case 3: copy an archive containing a universal object.
 # RUN: llvm-ar cr %t.archive.containing.universal %t.universal
 # RUN: llvm-objcopy %t.archive.containing.universal %t.archive.containing.universal.copy
+# RUN: cmp %t.archive.containing.universal %t.archive.containing.universal.copy
 
 ## Case 4: try to copy a universal object file contaning a bitcode slice.
 # RUN: echo 'target triple = "arm64-apple-ios8.0.0"' | llvm-as -o %t.bitcode
        
    
    
More information about the llvm-commits
mailing list