[llvm] 65527a8 - [dsymutil tests] Try to make eh_frames.test run on other platforms

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Fri May 28 12:49:40 PDT 2021


Author: Nico Weber
Date: 2021-05-28T15:49:31-04:00
New Revision: 65527a8082ac947aa47cc2ff84b555da7dad48e1

URL: https://github.com/llvm/llvm-project/commit/65527a8082ac947aa47cc2ff84b555da7dad48e1
DIFF: https://github.com/llvm/llvm-project/commit/65527a8082ac947aa47cc2ff84b555da7dad48e1.diff

LOG: [dsymutil tests] Try to make eh_frames.test run on other platforms

We now have llvm-otool :)

Added: 
    

Modified: 
    llvm/test/tools/dsymutil/X86/eh_frame.test

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/dsymutil/X86/eh_frame.test b/llvm/test/tools/dsymutil/X86/eh_frame.test
index 1a349dc983b27..c4be843fff597 100644
--- a/llvm/test/tools/dsymutil/X86/eh_frame.test
+++ b/llvm/test/tools/dsymutil/X86/eh_frame.test
@@ -1,7 +1,3 @@
-REQUIRES: system-darwin
-
-FIXME: Replace otool with llvm-objcopy --dump-section=__TEXT,__eh_frame.
-
 $ cat eh_frame.cpp
 int f1()
 {
@@ -19,8 +15,8 @@ $ ld -no_compact_unwind eh_frame.o -o eh_frame.out
 
 RUN: dsymutil -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/eh_frame/eh_frame.out -o %t.dSYM
 RUN: llvm-dwarfdump --verify %t.dSYM
-RUN: otool -s __TEXT __eh_frame %p/../Inputs/private/tmp/eh_frame/eh_frame.out | FileCheck %s
-RUN: otool -s __TEXT __eh_frame %t.dSYM/Contents/Resources/DWARF/eh_frame.out | FileCheck %s
+RUN: llvm-otool -s __TEXT __eh_frame %p/../Inputs/private/tmp/eh_frame/eh_frame.out | FileCheck %s
+RUN: llvm-otool -s __TEXT __eh_frame %t.dSYM/Contents/Resources/DWARF/eh_frame.out | FileCheck %s
 
 CHECK: 14 00 00 00 00 00 00 00 01 7a 52 00 01 78 10 01
 CHECK: 10 0c 07 08 90 01 00 00


        


More information about the llvm-commits mailing list