diff options
author | David Blaikie <dblaikie@gmail.com> | 2016-05-23 17:59:17 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2016-05-23 17:59:17 +0000 |
commit | 05f84cd31d13f9130e35ed438ad72ffbe75a163b (patch) | |
tree | d2c97444f26a5ea07fea561b3758ef4fd2a2a70a /llvm/test/tools/llvm-dwp | |
parent | e8dc090a2b5eb642bcf6d5c9e89a19d5f109d28b (diff) | |
download | bcm5719-llvm-05f84cd31d13f9130e35ed438ad72ffbe75a163b.tar.gz bcm5719-llvm-05f84cd31d13f9130e35ed438ad72ffbe75a163b.zip |
llvm-dwp: More error handling around invalid compressed sections
llvm-svn: 270466
Diffstat (limited to 'llvm/test/tools/llvm-dwp')
-rw-r--r-- | llvm/test/tools/llvm-dwp/Inputs/empty_compressed_section.dwo | bin | 0 -> 1161 bytes | |||
-rw-r--r-- | llvm/test/tools/llvm-dwp/Inputs/invalid_compressed.dwo | bin | 0 -> 1281 bytes | |||
-rw-r--r-- | llvm/test/tools/llvm-dwp/X86/compressfail.test | 4 |
3 files changed, 3 insertions, 1 deletions
diff --git a/llvm/test/tools/llvm-dwp/Inputs/empty_compressed_section.dwo b/llvm/test/tools/llvm-dwp/Inputs/empty_compressed_section.dwo Binary files differnew file mode 100644 index 00000000000..bc9b4ff983b --- /dev/null +++ b/llvm/test/tools/llvm-dwp/Inputs/empty_compressed_section.dwo diff --git a/llvm/test/tools/llvm-dwp/Inputs/invalid_compressed.dwo b/llvm/test/tools/llvm-dwp/Inputs/invalid_compressed.dwo Binary files differnew file mode 100644 index 00000000000..0cbfd14ffe7 --- /dev/null +++ b/llvm/test/tools/llvm-dwp/Inputs/invalid_compressed.dwo diff --git a/llvm/test/tools/llvm-dwp/X86/compressfail.test b/llvm/test/tools/llvm-dwp/X86/compressfail.test index d9f50cb434f..78b6255724f 100644 --- a/llvm/test/tools/llvm-dwp/X86/compressfail.test +++ b/llvm/test/tools/llvm-dwp/X86/compressfail.test @@ -1,5 +1,7 @@ RUN: not llvm-dwp %p/../Inputs/compressfail/a.dwo -o %t 2>&1 | FileCheck %s +RUN: not llvm-dwp %p/../Inputs/empty_compressed_section.dwo -o %t 2>&1 | FileCheck %s +RUN: not llvm-dwp %p/../Inputs/invalid_compressed.dwo -o %t 2>&1 | FileCheck %s REQUIRES: zlib -CHECK: error: failure while decompressing compressed section: 'zdebug_info.dwo' +CHECK: error: failure while decompressing compressed section: 'zdebug_{{.*}}.dwo' |