[llvm] r230779 - Object: Test for reading kext bundles
Justin Bogner
mail at justinbogner.com
Fri Feb 27 10:58:23 PST 2015
Author: bogner
Date: Fri Feb 27 12:58:23 2015
New Revision: 230779
URL: http://llvm.org/viewvc/llvm-project?rev=230779&view=rev
Log:
Object: Test for reading kext bundles
In the review for r230567, it was pointed out we should really test
the lib/Object part of that change. This does so using llvm-readobj.
Added:
llvm/trunk/test/Object/Inputs/macho-empty-kext-bundle-x86-64 (with props)
llvm/trunk/test/Object/kext.test
Added: llvm/trunk/test/Object/Inputs/macho-empty-kext-bundle-x86-64
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/Inputs/macho-empty-kext-bundle-x86-64?rev=230779&view=auto
==============================================================================
Binary files llvm/trunk/test/Object/Inputs/macho-empty-kext-bundle-x86-64 (added) and llvm/trunk/test/Object/Inputs/macho-empty-kext-bundle-x86-64 Fri Feb 27 12:58:23 2015 differ
Propchange: llvm/trunk/test/Object/Inputs/macho-empty-kext-bundle-x86-64
------------------------------------------------------------------------------
svn:executable = *
Added: llvm/trunk/test/Object/kext.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Object/kext.test?rev=230779&view=auto
==============================================================================
--- llvm/trunk/test/Object/kext.test (added)
+++ llvm/trunk/test/Object/kext.test Fri Feb 27 12:58:23 2015
@@ -0,0 +1,7 @@
+// Check that we understand kext bundles.
+// Test input generated by "clang -x c++ -fapple-kext -Wl,-kext /dev/null"
+
+RUN: llvm-readobj %p/Inputs/macho-empty-kext-bundle-x86-64 | FileCheck %s
+CHECK: Format: Mach-O 64-bit x86-64
+CHECK: Arch: x86_64
+CHECK: AddressSize: 64bit
More information about the llvm-commits
mailing list