From: Todd Fiala Date: Wed, 23 Jul 2014 15:16:35 +0000 (+0000) Subject: Add kalimba architecture checking to TestImageListMultiArchitecture X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=002fb104bd0a53df5917a5e2a3bfd93cb96d9bd4;p=platform%2Fupstream%2Fllvm.git Add kalimba architecture checking to TestImageListMultiArchitecture Verify that ObjectFileELF's kalimba detection works regardless of the host platform. Change by Matthew Gardiner. llvm-svn: 213763 --- diff --git a/lldb/test/functionalities/object-file/TestImageListMultiArchitecture.py b/lldb/test/functionalities/object-file/TestImageListMultiArchitecture.py index fb7a1c2..b9bd95c 100644 --- a/lldb/test/functionalities/object-file/TestImageListMultiArchitecture.py +++ b/lldb/test/functionalities/object-file/TestImageListMultiArchitecture.py @@ -27,6 +27,7 @@ class TestImageListMultiArchitecture(TestBase): "hello-netbsd-6.1-x86_64-gcc-4.5.3": re.compile(r"x86_64-(unknown)?-netbsd x86_64"), "hello-ubuntu-14.04-x86_64-gcc-4.8.2": re.compile(r"x86_64-(unknown)?-linux x86_64"), "hello-ubuntu-14.04-x86_64-clang-3.5pre": re.compile(r"x86_64-(unknown)?-linux x86_64"), + "hello-unknown-kalimba_arch4-kcc-36": re.compile(r"kalimba-csr-unknown kalimba"), } for image_name in images: diff --git a/lldb/test/functionalities/object-file/bin/hello-unknown-kalimba_arch4-kcc-36 b/lldb/test/functionalities/object-file/bin/hello-unknown-kalimba_arch4-kcc-36 new file mode 100644 index 0000000..8e4dd8c Binary files /dev/null and b/lldb/test/functionalities/object-file/bin/hello-unknown-kalimba_arch4-kcc-36 differ diff --git a/lldb/test/functionalities/object-file/bin/hello.c b/lldb/test/functionalities/object-file/bin/hello.c new file mode 100644 index 0000000..8c80400 --- /dev/null +++ b/lldb/test/functionalities/object-file/bin/hello.c @@ -0,0 +1,8 @@ +#include + +int main(int argc, char **argv) +{ + printf("Hello, world\n"); + return 0; +} +