[llvm-objcopy][test] Add cmp after copy
authorKeith Smiley <keithbsmiley@gmail.com>
Thu, 12 May 2022 17:28:57 +0000 (10:28 -0700)
committerKeith Smiley <keithbsmiley@gmail.com>
Mon, 16 May 2022 23:04:35 +0000 (16:04 -0700)
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

llvm/test/tools/llvm-objcopy/MachO/universal-object.test

index a6146fd..3db8795 100644 (file)
@@ -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